diff options
author | madmaxoft <github@xoft.cz> | 2014-01-02 17:33:18 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-02 17:33:18 +0100 |
commit | c510683d2a64e75a667134ef0b63e9638c474c28 (patch) | |
tree | efbd4b1ee8205bf02bfe705b18647626745438a9 /src/StringUtils.h | |
parent | Merge pull request #484 from worktycho/cmake-fixes (diff) | |
download | cuberite-c510683d2a64e75a667134ef0b63e9638c474c28.tar cuberite-c510683d2a64e75a667134ef0b63e9638c474c28.tar.gz cuberite-c510683d2a64e75a667134ef0b63e9638c474c28.tar.bz2 cuberite-c510683d2a64e75a667134ef0b63e9638c474c28.tar.lz cuberite-c510683d2a64e75a667134ef0b63e9638c474c28.tar.xz cuberite-c510683d2a64e75a667134ef0b63e9638c474c28.tar.zst cuberite-c510683d2a64e75a667134ef0b63e9638c474c28.zip |
Diffstat (limited to '')
-rw-r--r-- | src/StringUtils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/StringUtils.h b/src/StringUtils.h index 3917cc4ec..471e843e4 100644 --- a/src/StringUtils.h +++ b/src/StringUtils.h @@ -81,6 +81,15 @@ extern AString ReplaceAllCharOccurrences(const AString & a_String, char a_From, /// Decodes a Base64-encoded string into the raw data extern AString Base64Decode(const AString & a_Base64String); +/// Reads two bytes from the specified memory location and interprets them as BigEndian short +extern short GetBEShort(const char * a_Mem); + +/// Reads four bytes from the specified memory location and interprets them as BigEndian int +extern int GetBEInt(const char * 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); + // If you have any other string helper functions, declare them here |