Lines Matching full:offset
36 const uint8_t *GetPointer(int32_t offset) const in GetPointer() argument
39 return pc_ + offset; in GetPointer()
63 T Read(size_t offset) const in Read() argument
66 return *reinterpret_cast<unaligned_type *>(GetPointer(offset)); in Read()
69 void Write(uint32_t value, uint32_t offset, uint32_t width) in Write() argument
71 auto *dst = const_cast<uint8_t *>(GetPointer(offset)); in Write()
73 … LOG(FATAL, PANDAFILE) << "Cannot write value : " << value << "at the dst offset : " << offset; in Write()
77 uint8_t ReadByte(size_t offset) const in ReadByte() argument
79 return Read<uint8_t>(offset); in ReadByte()
83 inline auto ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size_t width) const in ReadHelper() argument
87 size_t right_shift = offset % BYTE_WIDTH; in ReadHelper()
107 template <size_t offset, size_t width, bool is_signed = false>
111 constexpr size_t BYTE_OFFSET = offset / BYTE_WIDTH; in Read()
112 constexpr size_t BYTE_OFFSET_END = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH; 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()
129 size_t byteoffset = offset / BYTE_WIDTH; 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()