HomePhabricator

util: extract {Read,Write}BinaryFile() to its own files

Description

util: extract {Read,Write}BinaryFile() to its own files

Summary:
Extract ReadBinaryFile() and WriteBinaryFile() from torcontrol.cpp to its own readwritefile.{h,cpp} files, so that it can be reused from other modules.

This is a backport of core#20685 [1/20]
https://github.com/bitcoin/bitcoin/pull/20685/commits/4cba2fdafa483cbdb70f581174138ec253c80d48

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11012

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on Nov 18 2020, 16:13
PiRKCommitted on Feb 10 2022, 09:12
PiRKPushed on Feb 10 2022, 09:12
Reviewer
Restricted Project
Differential Revision
D11012: util: extract {Read,Write}BinaryFile() to its own files
Parents
rABCfc92840ace64: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown