1#ifndef LIBCLOD_CHUNK_LOCATION_H
2#define LIBCLOD_CHUNK_LOCATION_H
11static inline chunk_loc chunk_loc_dec(uint8_t ptr[4]) {
13 loc.offset = (uint32_t)(ptr[0] << 16 | ptr[1] << 8 | ptr[2]);
17static inline void chunk_loc_enc(uint8_t ptr[4],
chunk_loc loc) {
18 ptr[0] = (uint8_t)(loc.offset >> 16);
19 ptr[1] = (uint8_t)(loc.offset >> 8);
20 ptr[2] = (uint8_t)loc.offset;