summaryrefslogtreecommitdiffstats
path: root/src/Endianness.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-03-21 13:00:20 +0100
committerMattes D <github@xoft.cz>2015-03-21 13:00:20 +0100
commitb1d4b3bb96629b3624e8328d7b1a0bce5333bb7d (patch)
tree2cb73fbb8e15ca8f65d794ddb9d9717cdd27f5ce /src/Endianness.h
parentAPIDump: Added inheritance checking. (diff)
downloadcuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.gz
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.bz2
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.lz
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.xz
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.zst
cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.zip
Diffstat (limited to 'src/Endianness.h')
-rw-r--r--src/Endianness.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Endianness.h b/src/Endianness.h
index 5692b3811..ed9637fcc 100644
--- a/src/Endianness.h
+++ b/src/Endianness.h
@@ -59,6 +59,18 @@ inline Int64 NetworkToHostLong8(const void * a_Value)
+inline UInt64 NetworkToHostULong8(const void * a_Value)
+{
+ UInt64 buf;
+ memcpy(&buf, a_Value, 8);
+ buf = ntohll(buf);
+ return buf;
+}
+
+
+
+
+
inline float NetworkToHostFloat4(const void * a_Value)
{
UInt32 buf;