Lines Matching defs:read
10 // This file declares generic functions to read and write endian specific data.
45 /// Read a value of a particular endianness from memory.
49 inline value_type read(const void *memory) {
59 /// Read a value of a particular endianness from a buffer, and increment the
64 value_type ret = read<value_type, endian, alignment>(memory);
84 /// Read a value of a particular endianness from memory, for a location
90 return read<value_type, endian, alignment>(memory);
92 // Read two values and compose the result from them.
127 // Read two values and shift the result into them.
177 return endian::read<value_type, endian, alignment>(
215 return endian::read<value_type, endian, alignment>(Ptr);
300 template <typename T, endianness E> inline T read(const void *P) {
305 return read<uint16_t, E>(P);
308 return read<uint32_t, E>(P);
311 return read<uint64_t, E>(P);