Lines Matching refs:val
69 void writeU8(uint8_t val) { in writeU8() argument
72 data[pos++] = val; in writeU8()
78 uint16_t val; in readU16() local
79 memcpy(&val, &data[pos], sizeof(val)); in readU16()
80 pos += sizeof(val); in readU16()
81 return le16toh(val); in readU16()
83 void writeU16(uint16_t val) { in writeU16() argument
87 uint16_t tmp = htole16(val); in writeU16()
95 uint32_t val; in readU32() local
96 memcpy(&val, &data[pos], sizeof(val)); in readU32()
97 pos += sizeof(val); in readU32()
98 return le32toh(val); in readU32()
100 void writeU32(uint32_t val) { in writeU32() argument
104 uint32_t tmp = htole32(val); in writeU32()
112 uint64_t val; in readU64() local
113 memcpy(&val, &data[pos], sizeof(val)); in readU64()
114 pos += sizeof(val); in readU64()
115 return le32toh(val); in readU64()
117 void writeU64(uint64_t val) { in writeU64() argument
121 uint64_t tmp = htole64(val); in writeU64()