Lines Matching refs:buf
116 static inline unsigned short getShortLE(const unsigned char* buf) { in getShortLE() argument
117 return buf[0] | (buf[1] << 8); in getShortLE()
119 static inline unsigned long getLongLE(const unsigned char* buf) { in getLongLE() argument
120 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); in getLongLE()
122 static inline void putShortLE(unsigned char* buf, short val) { in putShortLE() argument
123 buf[0] = (unsigned char) val; in putShortLE()
124 buf[1] = (unsigned char) (val >> 8); in putShortLE()
126 static inline void putLongLE(unsigned char* buf, long val) { in putLongLE() argument
127 buf[0] = (unsigned char) val; in putLongLE()
128 buf[1] = (unsigned char) (val >> 8); in putLongLE()
129 buf[2] = (unsigned char) (val >> 16); in putLongLE()
130 buf[3] = (unsigned char) (val >> 24); in putLongLE()