Lines Matching refs:offset_ptr
318 uint8_t DataExtractor::GetU8(offset_t *offset_ptr) const { in GetU8()
319 const uint8_t *data = static_cast<const uint8_t *>(GetData(offset_ptr, 1)); in GetU8()
331 void *DataExtractor::GetU8(offset_t *offset_ptr, void *dst, in GetU8() argument
334 static_cast<const uint8_t *>(GetData(offset_ptr, count)); in GetU8()
349 uint16_t DataExtractor::GetU16(offset_t *offset_ptr) const { in GetU16()
352 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU16()
362 uint16_t DataExtractor::GetU16_unchecked(offset_t *offset_ptr) const { in GetU16_unchecked()
365 val = ReadInt16(m_start, *offset_ptr); in GetU16_unchecked()
367 val = ReadSwapInt16(m_start, *offset_ptr); in GetU16_unchecked()
368 *offset_ptr += sizeof(val); in GetU16_unchecked()
372 uint32_t DataExtractor::GetU32_unchecked(offset_t *offset_ptr) const { in GetU32_unchecked()
375 val = ReadInt32(m_start, *offset_ptr); in GetU32_unchecked()
377 val = ReadSwapInt32(m_start, *offset_ptr); in GetU32_unchecked()
378 *offset_ptr += sizeof(val); in GetU32_unchecked()
382 uint64_t DataExtractor::GetU64_unchecked(offset_t *offset_ptr) const { in GetU64_unchecked()
385 val = ReadInt64(m_start, *offset_ptr); in GetU64_unchecked()
387 val = ReadSwapInt64(m_start, *offset_ptr); in GetU64_unchecked()
388 *offset_ptr += sizeof(val); in GetU64_unchecked()
398 void *DataExtractor::GetU16(offset_t *offset_ptr, void *void_dst, in GetU16() argument
402 static_cast<const uint16_t *>(GetData(offset_ptr, src_size)); in GetU16()
427 uint32_t DataExtractor::GetU32(offset_t *offset_ptr) const { in GetU32()
430 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU32()
447 void *DataExtractor::GetU32(offset_t *offset_ptr, void *void_dst, in GetU32() argument
451 static_cast<const uint32_t *>(GetData(offset_ptr, src_size)); in GetU32()
476 uint64_t DataExtractor::GetU64(offset_t *offset_ptr) const { in GetU64()
479 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU64()
495 void *DataExtractor::GetU64(offset_t *offset_ptr, void *void_dst, in GetU64() argument
499 static_cast<const uint64_t *>(GetData(offset_ptr, src_size)); in GetU64()
520 uint32_t DataExtractor::GetMaxU32(offset_t *offset_ptr, in GetMaxU32() argument
523 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
526 uint64_t DataExtractor::GetMaxU64(offset_t *offset_ptr, in GetMaxU64() argument
531 return GetU8(offset_ptr); in GetMaxU64()
533 return GetU16(offset_ptr); in GetMaxU64()
535 return GetU32(offset_ptr); in GetMaxU64()
537 return GetU64(offset_ptr); in GetMaxU64()
541 static_cast<const uint8_t *>(GetData(offset_ptr, byte_size)); in GetMaxU64()
550 uint64_t DataExtractor::GetMaxU64_unchecked(offset_t *offset_ptr, in GetMaxU64_unchecked() argument
554 return GetU8_unchecked(offset_ptr); in GetMaxU64_unchecked()
556 return GetU16_unchecked(offset_ptr); in GetMaxU64_unchecked()
558 return GetU32_unchecked(offset_ptr); in GetMaxU64_unchecked()
560 return GetU64_unchecked(offset_ptr); in GetMaxU64_unchecked()
562 uint64_t res = ReadMaxInt64(&m_start[*offset_ptr], byte_size, m_byte_order); in GetMaxU64_unchecked()
563 *offset_ptr += byte_size; in GetMaxU64_unchecked()
570 int64_t DataExtractor::GetMaxS64(offset_t *offset_ptr, size_t byte_size) const { in GetMaxS64() argument
571 uint64_t u64 = GetMaxU64(offset_ptr, byte_size); in GetMaxS64()
575 uint64_t DataExtractor::GetMaxU64Bitfield(offset_t *offset_ptr, size_t size, in GetMaxU64Bitfield() argument
579 uint64_t uval64 = GetMaxU64(offset_ptr, size); in GetMaxU64Bitfield()
603 int64_t DataExtractor::GetMaxS64Bitfield(offset_t *offset_ptr, size_t size, in GetMaxS64Bitfield() argument
608 int64_t sval64 = GetMaxS64(offset_ptr, size); in GetMaxS64Bitfield()
624 float DataExtractor::GetFloat(offset_t *offset_ptr) const { in GetFloat()
625 return Get<float>(offset_ptr, 0.0f); in GetFloat()
628 double DataExtractor::GetDouble(offset_t *offset_ptr) const { in GetDouble()
629 return Get<double>(offset_ptr, 0.0); in GetDouble()
632 long double DataExtractor::GetLongDouble(offset_t *offset_ptr) const { in GetLongDouble()
636 *offset_ptr += CopyByteOrderedData(*offset_ptr, 10, &val, sizeof(val), in GetLongDouble()
639 *offset_ptr += CopyByteOrderedData(*offset_ptr, sizeof(val), &val, in GetLongDouble()
651 uint64_t DataExtractor::GetAddress(offset_t *offset_ptr) const { in GetAddress()
653 return GetMaxU64(offset_ptr, m_addr_size); in GetAddress()
656 uint64_t DataExtractor::GetAddress_unchecked(offset_t *offset_ptr) const { in GetAddress_unchecked()
658 return GetMaxU64_unchecked(offset_ptr, m_addr_size); in GetAddress_unchecked()
786 const char *DataExtractor::GetCStr(offset_t *offset_ptr) const { in GetCStr()
787 const char *start = reinterpret_cast<const char *>(PeekData(*offset_ptr, 1)); in GetCStr()
804 *offset_ptr += (terminator_or_end - start + 1UL); in GetCStr()
816 const char *DataExtractor::GetCStr(offset_t *offset_ptr, offset_t len) const { in GetCStr() argument
817 const char *cstr = reinterpret_cast<const char *>(PeekData(*offset_ptr, len)); in GetCStr()
822 *offset_ptr += len; in GetCStr()
844 uint64_t DataExtractor::GetULEB128(offset_t *offset_ptr) const { in GetULEB128()
845 const uint8_t *src = PeekData(*offset_ptr, 1); in GetULEB128()
851 *offset_ptr += byte_count; in GetULEB128()
861 int64_t DataExtractor::GetSLEB128(offset_t *offset_ptr) const { in GetSLEB128()
862 const uint8_t *src = PeekData(*offset_ptr, 1); in GetSLEB128()
868 *offset_ptr += byte_count; in GetSLEB128()
878 uint32_t DataExtractor::Skip_LEB128(offset_t *offset_ptr) const { in Skip_LEB128()
880 const uint8_t *src = PeekData(*offset_ptr, 1); in Skip_LEB128()
890 *offset_ptr += src_pos - src; in Skip_LEB128()