Lines Matching defs:width
69 void Write(uint32_t value, uint32_t offset, uint32_t width)
72 if (memcpy_s(dst, width, &value, width) != 0) {
83 inline auto ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size_t width) const
96 size_t left_shift = sizeof(R) * BYTE_WIDTH - width;
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;
116 using return_type = helpers::TypeHelperT<width, is_signed>;
118 return ReadHelper<return_type, storage_type>(BYTE_OFFSET, BYTE_COUNT, offset, width);
122 inline auto Read64(size_t offset, size_t width) const
127 ASSERT((offset % BYTE_WIDTH) + width <= BIT64);
130 size_t byteoffset_end = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH;
136 return ReadHelper<return_type, storage_type>(byteoffset, bytecount, offset, width);