summaryrefslogtreecommitdiff
path: root/src/big_endian.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/big_endian.h')
-rw-r--r--src/big_endian.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/big_endian.h b/src/big_endian.h
new file mode 100644
index 0000000..e6c587e
--- /dev/null
+++ b/src/big_endian.h
@@ -0,0 +1,9 @@
+#ifndef BIG_ENDIAN_H
+#define BIG_ENDIAN_H
+#include <stdint.h>
+
+void to_big_endian(uint64_t num, unsigned char *result);
+
+uint64_t from_big_endian(unsigned char *num);
+
+#endif