Lines Matching refs:offset_ptr
38 uint8_t DNBDataRef::Get8(offset_t *offset_ptr) const { in Get8()
40 if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) { in Get8()
41 val = *(m_start + *offset_ptr); in Get8()
42 *offset_ptr += sizeof(val); in Get8()
48 uint16_t DNBDataRef::Get16(offset_t *offset_ptr) const { in Get16()
50 if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) { in Get16()
51 const uint8_t *p = m_start + *offset_ptr; in Get16()
58 *offset_ptr += sizeof(val); in Get16()
64 uint32_t DNBDataRef::Get32(offset_t *offset_ptr) const { in Get32()
66 if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) { in Get32()
67 const uint8_t *p = m_start + *offset_ptr; in Get32()
73 *offset_ptr += sizeof(val); in Get32()
79 uint64_t DNBDataRef::Get64(offset_t *offset_ptr) const { in Get64()
81 if (ValidOffsetForDataOfSize(*offset_ptr, sizeof(val))) { in Get64()
82 const uint8_t *p = m_start + *offset_ptr; in Get64()
88 *offset_ptr += sizeof(val); in Get64()
97 uint32_t DNBDataRef::GetMax32(offset_t *offset_ptr, uint32_t byte_size) const { in GetMax32() argument
100 return Get8(offset_ptr); in GetMax32()
103 return Get16(offset_ptr); in GetMax32()
106 return Get32(offset_ptr); in GetMax32()
119 uint64_t DNBDataRef::GetMax64(offset_t *offset_ptr, uint32_t size) const { in GetMax64() argument
122 return Get8(offset_ptr); in GetMax64()
125 return Get16(offset_ptr); in GetMax64()
128 return Get32(offset_ptr); in GetMax64()
131 return Get64(offset_ptr); in GetMax64()
144 uint64_t DNBDataRef::GetPointer(offset_t *offset_ptr) const { in GetPointer()
147 return GetMax64(offset_ptr, m_ptrSize); in GetPointer()
150 const char *DNBDataRef::GetCStr(offset_t *offset_ptr, in GetCStr() argument
154 s = (const char *)m_start + *offset_ptr; in GetCStr()
158 *offset_ptr += fixed_length; in GetCStr()
160 *offset_ptr += strlen(s) + 1; in GetCStr()
166 const uint8_t *DNBDataRef::GetData(offset_t *offset_ptr, in GetData() argument
169 if (length > 0 && ValidOffsetForDataOfSize(*offset_ptr, length)) { in GetData()
170 data = m_start + *offset_ptr; in GetData()
171 *offset_ptr += length; in GetData()
177 uint64_t DNBDataRef::Get_ULEB128(offset_t *offset_ptr) const { in Get_ULEB128()
181 const uint8_t *src = m_start + *offset_ptr; in Get_ULEB128()
194 *offset_ptr += bytecount; in Get_ULEB128()
200 int64_t DNBDataRef::Get_SLEB128(offset_t *offset_ptr) const { in Get_SLEB128()
206 const uint8_t *src = m_start + *offset_ptr; in Get_SLEB128()
224 *offset_ptr += bytecount; in Get_SLEB128()
232 void DNBDataRef::Skip_LEB128(offset_t *offset_ptr) const { in Skip_LEB128()
234 const uint8_t *start = m_start + *offset_ptr; in Skip_LEB128()
240 *offset_ptr += src - start; in Skip_LEB128()