diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2025-12-19 17:20:02 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2025-12-19 17:20:02 +1100 |
| commit | e943a6867f0e37f5eb68e9911a1971f747ed7531 (patch) | |
| tree | 6b7020f4a62414e00c223c51a31733db20fd817c /src/common.c | |
| parent | 827a9e0ceb9b5da11cdcf1f3aa6585b1ea247688 (diff) | |
feat(png): add ff_next_chunk function
Diffstat (limited to 'src/common.c')
| -rw-r--r-- | src/common.c | 8 |
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 |
