Lines Matching refs:offset_ptr

316 uint8_t DataExtractor::GetU8(offset_t *offset_ptr) const {  in GetU8()
317 const uint8_t *data = static_cast<const uint8_t *>(GetData(offset_ptr, 1)); in GetU8()
329 void *DataExtractor::GetU8(offset_t *offset_ptr, void *dst, in GetU8() argument
332 static_cast<const uint8_t *>(GetData(offset_ptr, count)); in GetU8()
347 uint16_t DataExtractor::GetU16(offset_t *offset_ptr) const { in GetU16()
350 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU16()
360 uint16_t DataExtractor::GetU16_unchecked(offset_t *offset_ptr) const { in GetU16_unchecked()
363 val = ReadInt16(m_start, *offset_ptr); in GetU16_unchecked()
365 val = ReadSwapInt16(m_start, *offset_ptr); in GetU16_unchecked()
366 *offset_ptr += sizeof(val); in GetU16_unchecked()
370 uint32_t DataExtractor::GetU32_unchecked(offset_t *offset_ptr) const { in GetU32_unchecked()
373 val = ReadInt32(m_start, *offset_ptr); in GetU32_unchecked()
375 val = ReadSwapInt32(m_start, *offset_ptr); in GetU32_unchecked()
376 *offset_ptr += sizeof(val); in GetU32_unchecked()
380 uint64_t DataExtractor::GetU64_unchecked(offset_t *offset_ptr) const { in GetU64_unchecked()
383 val = ReadInt64(m_start, *offset_ptr); in GetU64_unchecked()
385 val = ReadSwapInt64(m_start, *offset_ptr); in GetU64_unchecked()
386 *offset_ptr += sizeof(val); in GetU64_unchecked()
396 void *DataExtractor::GetU16(offset_t *offset_ptr, void *void_dst, in GetU16() argument
400 static_cast<const uint16_t *>(GetData(offset_ptr, src_size)); in GetU16()
425 uint32_t DataExtractor::GetU32(offset_t *offset_ptr) const { in GetU32()
428 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU32()
445 void *DataExtractor::GetU32(offset_t *offset_ptr, void *void_dst, in GetU32() argument
449 static_cast<const uint32_t *>(GetData(offset_ptr, src_size)); in GetU32()
474 uint64_t DataExtractor::GetU64(offset_t *offset_ptr) const { in GetU64()
477 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU64()
493 void *DataExtractor::GetU64(offset_t *offset_ptr, void *void_dst, in GetU64() argument
497 static_cast<const uint64_t *>(GetData(offset_ptr, src_size)); in GetU64()
518 uint32_t DataExtractor::GetMaxU32(offset_t *offset_ptr, in GetMaxU32() argument
521 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
524 uint64_t DataExtractor::GetMaxU64(offset_t *offset_ptr, in GetMaxU64() argument
529 return GetU8(offset_ptr); in GetMaxU64()
531 return GetU16(offset_ptr); in GetMaxU64()
533 return GetU32(offset_ptr); in GetMaxU64()
535 return GetU64(offset_ptr); in GetMaxU64()
539 static_cast<const uint8_t *>(GetData(offset_ptr, byte_size)); in GetMaxU64()
548 uint64_t DataExtractor::GetMaxU64_unchecked(offset_t *offset_ptr, in GetMaxU64_unchecked() argument
552 return GetU8_unchecked(offset_ptr); in GetMaxU64_unchecked()
554 return GetU16_unchecked(offset_ptr); in GetMaxU64_unchecked()
556 return GetU32_unchecked(offset_ptr); in GetMaxU64_unchecked()
558 return GetU64_unchecked(offset_ptr); in GetMaxU64_unchecked()
560 uint64_t res = ReadMaxInt64(&m_start[*offset_ptr], byte_size, m_byte_order); in GetMaxU64_unchecked()
561 *offset_ptr += byte_size; in GetMaxU64_unchecked()
568 int64_t DataExtractor::GetMaxS64(offset_t *offset_ptr, size_t byte_size) const { in GetMaxS64() argument
569 uint64_t u64 = GetMaxU64(offset_ptr, byte_size); in GetMaxS64()
573 uint64_t DataExtractor::GetMaxU64Bitfield(offset_t *offset_ptr, size_t size, in GetMaxU64Bitfield() argument
577 uint64_t uval64 = GetMaxU64(offset_ptr, size); in GetMaxU64Bitfield()
601 int64_t DataExtractor::GetMaxS64Bitfield(offset_t *offset_ptr, size_t size, in GetMaxS64Bitfield() argument
606 int64_t sval64 = GetMaxS64(offset_ptr, size); in GetMaxS64Bitfield()
622 float DataExtractor::GetFloat(offset_t *offset_ptr) const { in GetFloat()
623 return Get<float>(offset_ptr, 0.0f); in GetFloat()
626 double DataExtractor::GetDouble(offset_t *offset_ptr) const { in GetDouble()
627 return Get<double>(offset_ptr, 0.0); in GetDouble()
630 long double DataExtractor::GetLongDouble(offset_t *offset_ptr) const { in GetLongDouble()
634 *offset_ptr += CopyByteOrderedData(*offset_ptr, 10, &val, sizeof(val), in GetLongDouble()
637 *offset_ptr += CopyByteOrderedData(*offset_ptr, sizeof(val), &val, in GetLongDouble()
649 uint64_t DataExtractor::GetAddress(offset_t *offset_ptr) const { in GetAddress()
651 return GetMaxU64(offset_ptr, m_addr_size); in GetAddress()
654 uint64_t DataExtractor::GetAddress_unchecked(offset_t *offset_ptr) const { in GetAddress_unchecked()
656 return GetMaxU64_unchecked(offset_ptr, m_addr_size); in GetAddress_unchecked()
784 const char *DataExtractor::GetCStr(offset_t *offset_ptr) const { in GetCStr()
785 const char *start = reinterpret_cast<const char *>(PeekData(*offset_ptr, 1)); in GetCStr()
802 *offset_ptr += (terminator_or_end - start + 1UL); in GetCStr()
814 const char *DataExtractor::GetCStr(offset_t *offset_ptr, offset_t len) const { in GetCStr() argument
815 const char *cstr = reinterpret_cast<const char *>(PeekData(*offset_ptr, len)); in GetCStr()
820 *offset_ptr += len; in GetCStr()
842 uint64_t DataExtractor::GetULEB128(offset_t *offset_ptr) const { in GetULEB128()
843 const uint8_t *src = PeekData(*offset_ptr, 1); in GetULEB128()
849 *offset_ptr += byte_count; in GetULEB128()
859 int64_t DataExtractor::GetSLEB128(offset_t *offset_ptr) const { in GetSLEB128()
860 const uint8_t *src = PeekData(*offset_ptr, 1); in GetSLEB128()
866 *offset_ptr += byte_count; in GetSLEB128()
876 uint32_t DataExtractor::Skip_LEB128(offset_t *offset_ptr) const { in Skip_LEB128()
878 const uint8_t *src = PeekData(*offset_ptr, 1); in Skip_LEB128()
888 *offset_ptr += src_pos - src; in Skip_LEB128()