read_be16(const u8 * buf)1static u32 read_be16(const u8* buf) { 2 return buf[0] * 256u + buf[1]; 3 } 4 store_be16(u8 * const buf,const u16 v)5static void store_be16(u8* const buf, const u16 v) { 6 buf[0] = (u8)(v >> 8); 7 buf[1] = (u8)v; 8 } 9 uppercase(u8 c)10static u8 uppercase(u8 c) { 11 return (c >= 'a') && (c <= 'z') ? c - ('a' - 'A') : c; 12 } 13