summaryrefslogtreecommitdiff
path: root/src/common.c
blob: 9dea3e4bf298bcbe701db68659c0c4f78a41a1cb (plain)
1
2
3
4
5
6
7
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]);
}