mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 22:42:04 +01:00
streams: Drop unused CAutoFile
This commit is contained in:
parent
cde9a4b137
commit
4eb2a9ea4b
1 changed files with 0 additions and 20 deletions
|
@ -505,26 +505,6 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class CAutoFile : public AutoFile
|
||||
{
|
||||
public:
|
||||
explicit CAutoFile(std::FILE* file, int /*unused*/, std::vector<std::byte> data_xor = {}) : AutoFile{file, std::move(data_xor)} {}
|
||||
|
||||
template<typename T>
|
||||
CAutoFile& operator<<(const T& obj)
|
||||
{
|
||||
::Serialize(*this, obj);
|
||||
return (*this);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
CAutoFile& operator>>(T&& obj)
|
||||
{
|
||||
::Unserialize(*this, obj);
|
||||
return (*this);
|
||||
}
|
||||
};
|
||||
|
||||
/** Wrapper around an AutoFile& that implements a ring buffer to
|
||||
* deserialize from. It guarantees the ability to rewind a given number of bytes.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue