summaryrefslogtreecommitdiffstats
path: root/source/StringUtils.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-02 11:04:11 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-09-02 11:04:11 +0200
commit926903905bcf5d1de0ef528718fddbf527fc19de (patch)
treeff76fd025eef10b19e30143db118a2d9334ff865 /source/StringUtils.h
parentCritical sectino now allows debug info - is it locked? / is it locked by current thread? (diff)
downloadcuberite-926903905bcf5d1de0ef528718fddbf527fc19de.tar
cuberite-926903905bcf5d1de0ef528718fddbf527fc19de.tar.gz
cuberite-926903905bcf5d1de0ef528718fddbf527fc19de.tar.bz2
cuberite-926903905bcf5d1de0ef528718fddbf527fc19de.tar.lz
cuberite-926903905bcf5d1de0ef528718fddbf527fc19de.tar.xz
cuberite-926903905bcf5d1de0ef528718fddbf527fc19de.tar.zst
cuberite-926903905bcf5d1de0ef528718fddbf527fc19de.zip
Diffstat (limited to '')
-rw-r--r--source/StringUtils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/StringUtils.h b/source/StringUtils.h
index 9dcb456c6..908c725ab 100644
--- a/source/StringUtils.h
+++ b/source/StringUtils.h
@@ -57,6 +57,8 @@ extern AString & RawBEToUTF8(short * a_RawData, int a_NumShorts, AString & a_UTF
/// Converts a UTF-8 string into a UTF-16 BE string, packing that back into AString; return a ref to a_UTF16
extern AString & UTF8ToRawBEUTF16(const char * a_UTF8, size_t a_UTF8Length, AString & a_UTF16);
+/// Creates a nicely formatted HEX dump of the given memory block. Max a_BytesPerLine is 120
+extern AString & CreateHexDump(AString & a_Out, const void * a_Data, int a_Size, int a_BytesPerLine);
// If you have any other string helper functions, declare them here