diff options
author | tycho <work.tycho@gmail.com> | 2015-12-26 15:09:12 +0100 |
---|---|---|
committer | tycho <work.tycho@gmail.com> | 2016-01-18 17:31:46 +0100 |
commit | 0185716a916522abe60d7433c285424354fbe72f (patch) | |
tree | 1dfcbd55a6d5762a5c948109f6845e62447f00ed /src/StringUtils.h | |
parent | More NBTTests (diff) | |
download | cuberite-0185716a916522abe60d7433c285424354fbe72f.tar cuberite-0185716a916522abe60d7433c285424354fbe72f.tar.gz cuberite-0185716a916522abe60d7433c285424354fbe72f.tar.bz2 cuberite-0185716a916522abe60d7433c285424354fbe72f.tar.lz cuberite-0185716a916522abe60d7433c285424354fbe72f.tar.xz cuberite-0185716a916522abe60d7433c285424354fbe72f.tar.zst cuberite-0185716a916522abe60d7433c285424354fbe72f.zip |
Diffstat (limited to 'src/StringUtils.h')
-rw-r--r-- | src/StringUtils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/StringUtils.h b/src/StringUtils.h index 8c1925115..bd41c86af 100644 --- a/src/StringUtils.h +++ b/src/StringUtils.h @@ -111,13 +111,14 @@ extern AString Base64Decode(const AString & a_Base64String); // Exported manual extern AString Base64Encode(const AString & a_Input); // Exported manually due to embedded NULs and extra parameter /** Reads two bytes from the specified memory location and interprets them as BigEndian short */ -extern short GetBEShort(const char * a_Mem); +extern short GetBEShort(const Byte * a_Mem); /** Reads four bytes from the specified memory location and interprets them as BigEndian int */ -extern int GetBEInt(const char * a_Mem); +extern int GetBEInt(const Byte * a_Mem); /** Writes four bytes to the specified memory location so that they interpret as BigEndian int */ extern void SetBEInt(char * a_Mem, Int32 a_Value); +extern void SetBEInt(std::basic_string<Byte> & a_Mem, size_t a_Offset, Int32 a_Value); /** Splits a string that has embedded \0 characters, on those characters. a_Output is first cleared and then each separate string is pushed back into a_Output. |