aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-09-30 15:13:45 +0200
committerGitHub <[email protected]>2022-09-30 06:13:45 -0700
commitbcc85c7e5cbcf0737f5180e3d601e63b480e8949 (patch)
tree134d702e98ec63ff06e6d08345a4d021812d33b3 /zencore/include
parentUse bucket/key to get inline value in upstream for chunks without a chunkid (... (diff)
downloadzen-bcc85c7e5cbcf0737f5180e3d601e63b480e8949.tar.xz
zen-bcc85c7e5cbcf0737f5180e3d601e63b480e8949.zip
De/reduce buffer creation in parsepackedmessage (#175)
* Don't create call CreateBuffer for attachement data that we only read and not keep * changelog * don't read oplog attachments into memory just to do a redundant store of them
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zencore/include/zencore/stream.h b/zencore/include/zencore/stream.h
index efff2c541..ec303e1f8 100644
--- a/zencore/include/zencore/stream.h
+++ b/zencore/include/zencore/stream.h
@@ -77,6 +77,7 @@ public:
inline uint64_t Size() const { return m_BufferSize; }
inline uint64_t GetSize() const { return Size(); }
inline uint64_t CurrentOffset() const { return m_Offset; }
+ inline void Skip(size_t ByteCount) { m_Offset += ByteCount; };
private:
const uint8_t* m_BufferBase;