Lines Matching refs:offset_ptr

351 uint8_t DataExtractor::GetU8(offset_t *offset_ptr) const {  in GetU8()
352 const uint8_t *data = (const uint8_t *)GetData(offset_ptr, 1); in GetU8()
366 void *DataExtractor::GetU8(offset_t *offset_ptr, void *dst, in GetU8() argument
368 const uint8_t *data = (const uint8_t *)GetData(offset_ptr, count); in GetU8()
385 uint16_t DataExtractor::GetU16(offset_t *offset_ptr) const { in GetU16()
387 const uint8_t *data = (const uint8_t *)GetData(offset_ptr, sizeof(val)); in GetU16()
397 uint16_t DataExtractor::GetU16_unchecked(offset_t *offset_ptr) const { in GetU16_unchecked()
400 val = ReadInt16(m_start, *offset_ptr); in GetU16_unchecked()
402 val = ReadSwapInt16(m_start, *offset_ptr); in GetU16_unchecked()
403 *offset_ptr += sizeof(val); in GetU16_unchecked()
407 uint32_t DataExtractor::GetU32_unchecked(offset_t *offset_ptr) const { in GetU32_unchecked()
410 val = ReadInt32(m_start, *offset_ptr); in GetU32_unchecked()
412 val = ReadSwapInt32(m_start, *offset_ptr); in GetU32_unchecked()
413 *offset_ptr += sizeof(val); in GetU32_unchecked()
417 uint64_t DataExtractor::GetU64_unchecked(offset_t *offset_ptr) const { in GetU64_unchecked()
420 val = ReadInt64(m_start, *offset_ptr); in GetU64_unchecked()
422 val = ReadSwapInt64(m_start, *offset_ptr); in GetU64_unchecked()
423 *offset_ptr += sizeof(val); in GetU64_unchecked()
435 void *DataExtractor::GetU16(offset_t *offset_ptr, void *void_dst, in GetU16() argument
438 const uint16_t *src = (const uint16_t *)GetData(offset_ptr, src_size); in GetU16()
465 uint32_t DataExtractor::GetU32(offset_t *offset_ptr) const { in GetU32()
467 const uint8_t *data = (const uint8_t *)GetData(offset_ptr, sizeof(val)); in GetU32()
486 void *DataExtractor::GetU32(offset_t *offset_ptr, void *void_dst, in GetU32() argument
489 const uint32_t *src = (const uint32_t *)GetData(offset_ptr, src_size); in GetU32()
516 uint64_t DataExtractor::GetU64(offset_t *offset_ptr) const { in GetU64()
518 const uint8_t *data = (const uint8_t *)GetData(offset_ptr, sizeof(val)); in GetU64()
536 void *DataExtractor::GetU64(offset_t *offset_ptr, void *void_dst, in GetU64() argument
539 const uint64_t *src = (const uint64_t *)GetData(offset_ptr, src_size); in GetU64()
560 uint32_t DataExtractor::GetMaxU32(offset_t *offset_ptr, in GetMaxU32() argument
563 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
566 uint64_t DataExtractor::GetMaxU64(offset_t *offset_ptr, in GetMaxU64() argument
571 return GetU8(offset_ptr); in GetMaxU64()
573 return GetU16(offset_ptr); in GetMaxU64()
575 return GetU32(offset_ptr); in GetMaxU64()
577 return GetU64(offset_ptr); in GetMaxU64()
581 static_cast<const uint8_t *>(GetData(offset_ptr, byte_size)); in GetMaxU64()
590 uint64_t DataExtractor::GetMaxU64_unchecked(offset_t *offset_ptr, in GetMaxU64_unchecked() argument
594 return GetU8_unchecked(offset_ptr); in GetMaxU64_unchecked()
596 return GetU16_unchecked(offset_ptr); in GetMaxU64_unchecked()
598 return GetU32_unchecked(offset_ptr); in GetMaxU64_unchecked()
600 return GetU64_unchecked(offset_ptr); in GetMaxU64_unchecked()
602 uint64_t res = ReadMaxInt64(&m_start[*offset_ptr], byte_size, m_byte_order); in GetMaxU64_unchecked()
603 *offset_ptr += byte_size; in GetMaxU64_unchecked()
610 int64_t DataExtractor::GetMaxS64(offset_t *offset_ptr, size_t byte_size) const { in GetMaxS64() argument
611 uint64_t u64 = GetMaxU64(offset_ptr, byte_size); in GetMaxS64()
615 uint64_t DataExtractor::GetMaxU64Bitfield(offset_t *offset_ptr, size_t size, in GetMaxU64Bitfield() argument
618 uint64_t uval64 = GetMaxU64(offset_ptr, size); in GetMaxU64Bitfield()
633 int64_t DataExtractor::GetMaxS64Bitfield(offset_t *offset_ptr, size_t size, in GetMaxS64Bitfield() argument
636 int64_t sval64 = GetMaxS64(offset_ptr, size); in GetMaxS64Bitfield()
652 float DataExtractor::GetFloat(offset_t *offset_ptr) const { in GetFloat()
656 const float_type *src = (const float_type *)GetData(offset_ptr, src_size); in GetFloat()
670 double DataExtractor::GetDouble(offset_t *offset_ptr) const { in GetDouble()
674 const float_type *src = (const float_type *)GetData(offset_ptr, src_size); in GetDouble()
688 long double DataExtractor::GetLongDouble(offset_t *offset_ptr) const { in GetLongDouble()
692 *offset_ptr += CopyByteOrderedData(*offset_ptr, 10, &val, sizeof(val), in GetLongDouble()
695 *offset_ptr += CopyByteOrderedData(*offset_ptr, sizeof(val), &val, in GetLongDouble()
709 uint64_t DataExtractor::GetAddress(offset_t *offset_ptr) const { in GetAddress()
713 return GetMaxU64(offset_ptr, m_addr_size); in GetAddress()
716 uint64_t DataExtractor::GetAddress_unchecked(offset_t *offset_ptr) const { in GetAddress_unchecked()
720 return GetMaxU64_unchecked(offset_ptr, m_addr_size); in GetAddress_unchecked()
731 uint64_t DataExtractor::GetPointer(offset_t *offset_ptr) const { in GetPointer()
735 return GetMaxU64(offset_ptr, m_addr_size); in GetPointer()
865 const char *DataExtractor::GetCStr(offset_t *offset_ptr) const { in GetCStr()
866 const char *cstr = (const char *)PeekData(*offset_ptr, 1); in GetCStr()
877 *offset_ptr += (cstr_end - cstr + 1); in GetCStr()
898 const char *DataExtractor::GetCStr(offset_t *offset_ptr, offset_t len) const { in GetCStr() argument
899 const char *cstr = (const char *)PeekData(*offset_ptr, len); in GetCStr()
904 *offset_ptr += len; in GetCStr()
930 uint64_t DataExtractor::GetULEB128(offset_t *offset_ptr) const { in GetULEB128()
931 const uint8_t *src = (const uint8_t *)PeekData(*offset_ptr, 1); in GetULEB128()
950 *offset_ptr = src - m_start; in GetULEB128()
965 int64_t DataExtractor::GetSLEB128(offset_t *offset_ptr) const { in GetSLEB128()
966 const uint8_t *src = (const uint8_t *)PeekData(*offset_ptr, 1); in GetSLEB128()
993 *offset_ptr += bytecount; in GetSLEB128()
1007 uint32_t DataExtractor::Skip_LEB128(offset_t *offset_ptr) const { in Skip_LEB128()
1009 const uint8_t *src = (const uint8_t *)PeekData(*offset_ptr, 1); in Skip_LEB128()
1019 *offset_ptr += src_pos - src; in Skip_LEB128()