From e943a6867f0e37f5eb68e9911a1971f747ed7531 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Fri, 19 Dec 2025 17:20:02 +1100 Subject: feat(png): add ff_next_chunk function --- src/common.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/common.c (limited to 'src/common.c') 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 -- cgit v1.2.3