streams: add DataStream::GetMemoryUsage

This commit is contained in:
laanwj
2024-10-27 09:04:54 +01:00
parent c3a6722f34
commit 047b5e2af1
2 changed files with 9 additions and 0 deletions

View File

@@ -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>