diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-03-05 14:03:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 14:03:55 +0100 |
commit | 868cd94ee9a5a0638c014a4cc42224f01ff234c8 (patch) | |
tree | cd23dc866f77de5b0b3e89a5eafeeb2ef24ffbdd /src/ByteBuffer.h | |
parent | fixed the crash on generating in the SinglePiceStructuresGen (#5136) (diff) | |
download | cuberite-868cd94ee9a5a0638c014a4cc42224f01ff234c8.tar cuberite-868cd94ee9a5a0638c014a4cc42224f01ff234c8.tar.gz cuberite-868cd94ee9a5a0638c014a4cc42224f01ff234c8.tar.bz2 cuberite-868cd94ee9a5a0638c014a4cc42224f01ff234c8.tar.lz cuberite-868cd94ee9a5a0638c014a4cc42224f01ff234c8.tar.xz cuberite-868cd94ee9a5a0638c014a4cc42224f01ff234c8.tar.zst cuberite-868cd94ee9a5a0638c014a4cc42224f01ff234c8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ByteBuffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ByteBuffer.h b/src/ByteBuffer.h index f730c594e..7b589f341 100644 --- a/src/ByteBuffer.h +++ b/src/ByteBuffer.h @@ -113,6 +113,9 @@ public: /** Writes a_Count bytes into a_Buffer; returns true if successful */ bool WriteBuf(const void * a_Buffer, size_t a_Count); + /** Writes a_Count bytes into a_Buffer; returns true if successful */ + bool WriteBuf(size_t a_Count, unsigned char a_Value); + /** Reads a_Count bytes into a_String; returns true if successful */ bool ReadSome(ContiguousByteBuffer & a_String, size_t a_Count); |