summaryrefslogtreecommitdiffstats
path: root/source/ByteBuffer.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-31 23:47:22 +0100
committermadmaxoft <github@xoft.cz>2013-10-31 23:47:22 +0100
commit080ee3b2a1fbc9af127297fa2e4ee401cb6e1ee1 (patch)
treec0d071c1c0ad176833ffb5234fa8c4e158d98e12 /source/ByteBuffer.h
parentProtocol 1.7: Added status ping handling. (diff)
downloadcuberite-080ee3b2a1fbc9af127297fa2e4ee401cb6e1ee1.tar
cuberite-080ee3b2a1fbc9af127297fa2e4ee401cb6e1ee1.tar.gz
cuberite-080ee3b2a1fbc9af127297fa2e4ee401cb6e1ee1.tar.bz2
cuberite-080ee3b2a1fbc9af127297fa2e4ee401cb6e1ee1.tar.lz
cuberite-080ee3b2a1fbc9af127297fa2e4ee401cb6e1ee1.tar.xz
cuberite-080ee3b2a1fbc9af127297fa2e4ee401cb6e1ee1.tar.zst
cuberite-080ee3b2a1fbc9af127297fa2e4ee401cb6e1ee1.zip
Diffstat (limited to '')
-rw-r--r--source/ByteBuffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/ByteBuffer.h b/source/ByteBuffer.h
index 71ee4764e..21abb0377 100644
--- a/source/ByteBuffer.h
+++ b/source/ByteBuffer.h
@@ -62,7 +62,7 @@ public:
bool ReadVarUTF8String (AString & a_Value); // string length as VarInt, then string as UTF-8
/// Reads VarInt, assigns it to anything that can be assigned from an UInt32 (unsigned short, char, Byte, double, ...)
- template <typename T> bool ReadVarUInt(T & a_Value)
+ template <typename T> bool ReadVarInt(T & a_Value)
{
UInt32 v;
bool res = ReadVarInt(v);
@@ -84,7 +84,7 @@ public:
bool WriteBool (bool a_Value);
bool WriteBEUTF16String16(const AString & a_Value); // string length as BE short, then string as UTF-16BE
bool WriteVarInt (UInt32 a_Value);
- bool WriteVarUTF8String (AString & a_Value); // string length as VarInt, then string as UTF-8
+ bool WriteVarUTF8String (const AString & a_Value); // string length as VarInt, then string as UTF-8
/// Reads a_Count bytes into a_Buffer; returns true if successful
bool ReadBuf(void * a_Buffer, int a_Count);