summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
new file mode 100644
index 0000000..9dea3e4
--- /dev/null
+++ b/src/common.c
@@ -0,0 +1,8 @@
+#include "tinyff/common.h"
+
+static inline uint32_t get_big_endian(const uint8_t *buffer) {
+ return (uint32_t)(buffer[0] << 24) |
+ (uint32_t)(buffer[1] << 16) |
+ (uint32_t)(buffer[2] << 8) |
+ (uint32_t)(buffer[3]);
+} \ No newline at end of file