Lines Matching refs:buf
113 static inline uint16_t getShortLE(const uint8_t* buf) { in getShortLE() argument
114 return buf[0] | (buf[1] << 8); in getShortLE()
116 static inline uint32_t getLongLE(const uint8_t* buf) { in getLongLE() argument
117 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); in getLongLE()
119 static inline void putShortLE(uint8_t* buf, uint16_t val) { in putShortLE() argument
120 buf[0] = (uint8_t) val; in putShortLE()
121 buf[1] = (uint8_t) (val >> 8); in putShortLE()
123 static inline void putLongLE(uint8_t* buf, uint32_t val) { in putLongLE() argument
124 buf[0] = (uint8_t) val; in putLongLE()
125 buf[1] = (uint8_t) (val >> 8); in putLongLE()
126 buf[2] = (uint8_t) (val >> 16); in putLongLE()
127 buf[3] = (uint8_t) (val >> 24); in putLongLE()