Lines Matching refs:width
69 void Write(uint32_t value, uint32_t offset, uint32_t width) in Write() argument
72 if (memcpy_s(dst, width, &value, width) != 0) { in Write()
83 inline auto ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size_t width) const in ReadHelper() argument
96 size_t left_shift = sizeof(R) * BYTE_WIDTH - width; in ReadHelper()
107 template <size_t offset, size_t width, bool is_signed = false>
112 constexpr size_t BYTE_OFFSET_END = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH; in Read()
116 using return_type = helpers::TypeHelperT<width, is_signed>; in Read()
118 return ReadHelper<return_type, storage_type>(BYTE_OFFSET, BYTE_COUNT, offset, width); in Read()
122 inline auto Read64(size_t offset, size_t width) const in Read64() argument
127 ASSERT((offset % BYTE_WIDTH) + width <= BIT64); in Read64()
130 size_t byteoffset_end = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH; in Read64()
136 return ReadHelper<return_type, storage_type>(byteoffset, bytecount, offset, width); in Read64()