Home | History | Annotate | Download | only in ziptime

Lines Matching refs:buf

53     static inline uint16_t getShortLE(const uint8_t* buf) {
54 return buf[0] | (buf[1] << 8);
56 static inline uint32_t getLongLE(const uint8_t* buf) {
57 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
59 static inline void putShortLE(uint8_t* buf, uint16_t val) {
60 buf[0] = (uint8_t) val;
61 buf[1] = (uint8_t) (val >> 8);