summaryrefslogtreecommitdiffstats
path: root/src/ByteBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ByteBuffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ByteBuffer.h b/src/ByteBuffer.h
index df8443dd2..128a907b2 100644
--- a/src/ByteBuffer.h
+++ b/src/ByteBuffer.h
@@ -129,6 +129,9 @@ public:
/** Checks if the internal state is valid (read and write positions in the correct bounds) using ASSERTs */
void CheckValid(void) const;
+ /** Gets the number of bytes that are needed to represent the given VarInt */
+ static size_t GetVarIntSize(UInt32 a_Value);
+
protected:
char * m_Buffer;
size_t m_BufferSize; // Total size of the ringbuffer