summaryrefslogtreecommitdiff
path: root/inc/pack.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/pack.h')
-rw-r--r--inc/pack.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/inc/pack.h b/inc/pack.h
index 581bcf9..55ebf4e 100644
--- a/inc/pack.h
+++ b/inc/pack.h
@@ -3,8 +3,11 @@
#include <stdio.h>
-/* reads a big endian int into an int */
-int reverseint(const unsigned char in[4]);
+/* turns a big endian int into an int */
+int frombigendian(const unsigned char in[4]);
+
+/* writes an int into a big endian int in given buffer */
+void tobigendian(const int in, unsigned char out[4]);
/* reads a teeworlds packed int from given buffer */
/* the given pointer is incremented */