mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 21:59:10 +02:00
streams: add DataStream::GetMemoryUsage
This commit is contained in:
@@ -277,6 +277,9 @@ public:
|
||||
{
|
||||
util::Xor(MakeWritableByteSpan(*this), MakeByteSpan(key));
|
||||
}
|
||||
|
||||
/** Compute total memory usage of this object (own memory + any dynamic memory). */
|
||||
size_t GetMemoryUsage() const noexcept;
|
||||
};
|
||||
|
||||
template <typename IStream>
|
||||
|
||||
Reference in New Issue
Block a user