diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-20 21:44:47 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-20 21:44:47 +0100 |
commit | c96447007e1f6ee0b4cb40195b0af6bd950f8e53 (patch) | |
tree | 705afacbdeac08592431e7e08f650c284d7bf625 /source/ByteBuffer.h | |
parent | Recipe update by STR_Warrior (diff) | |
download | cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.gz cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.bz2 cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.lz cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.xz cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.tar.zst cuberite-c96447007e1f6ee0b4cb40195b0af6bd950f8e53.zip |
Diffstat (limited to 'source/ByteBuffer.h')
-rw-r--r-- | source/ByteBuffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/ByteBuffer.h b/source/ByteBuffer.h index 3981ab066..2a73ed597 100644 --- a/source/ByteBuffer.h +++ b/source/ByteBuffer.h @@ -97,6 +97,9 @@ public: /// Re-reads the data that has been read since the last commit to the current readpos. Used by ProtoProxy to duplicate communication
void ReadAgain(AString & a_Out);
+ /// Checks if the internal state is valid (read and write positions in the correct bounds) using ASSERTs
+ void CheckValid(void) const;
+
protected:
char * m_Buffer;
int m_BufferSize; // Total size of the ringbuffer
|