Lines Matching refs:offset_ptr

317 uint8_t DataExtractor::GetU8(offset_t *offset_ptr) const {  in GetU8()
318 const uint8_t *data = static_cast<const uint8_t *>(GetData(offset_ptr, 1)); in GetU8()
330 void *DataExtractor::GetU8(offset_t *offset_ptr, void *dst, in GetU8() argument
333 static_cast<const uint8_t *>(GetData(offset_ptr, count)); in GetU8()
348 uint16_t DataExtractor::GetU16(offset_t *offset_ptr) const { in GetU16()
351 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU16()
361 uint16_t DataExtractor::GetU16_unchecked(offset_t *offset_ptr) const { in GetU16_unchecked()
364 val = ReadInt16(m_start, *offset_ptr); in GetU16_unchecked()
366 val = ReadSwapInt16(m_start, *offset_ptr); in GetU16_unchecked()
367 *offset_ptr += sizeof(val); in GetU16_unchecked()
371 uint32_t DataExtractor::GetU32_unchecked(offset_t *offset_ptr) const { in GetU32_unchecked()
374 val = ReadInt32(m_start, *offset_ptr); in GetU32_unchecked()
376 val = ReadSwapInt32(m_start, *offset_ptr); in GetU32_unchecked()
377 *offset_ptr += sizeof(val); in GetU32_unchecked()
381 uint64_t DataExtractor::GetU64_unchecked(offset_t *offset_ptr) const { in GetU64_unchecked()
384 val = ReadInt64(m_start, *offset_ptr); in GetU64_unchecked()
386 val = ReadSwapInt64(m_start, *offset_ptr); in GetU64_unchecked()
387 *offset_ptr += sizeof(val); in GetU64_unchecked()
397 void *DataExtractor::GetU16(offset_t *offset_ptr, void *void_dst, in GetU16() argument
401 static_cast<const uint16_t *>(GetData(offset_ptr, src_size)); in GetU16()
426 uint32_t DataExtractor::GetU32(offset_t *offset_ptr) const { in GetU32()
429 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU32()
446 void *DataExtractor::GetU32(offset_t *offset_ptr, void *void_dst, in GetU32() argument
450 static_cast<const uint32_t *>(GetData(offset_ptr, src_size)); in GetU32()
475 uint64_t DataExtractor::GetU64(offset_t *offset_ptr) const { in GetU64()
478 static_cast<const uint8_t *>(GetData(offset_ptr, sizeof(val))); in GetU64()
494 void *DataExtractor::GetU64(offset_t *offset_ptr, void *void_dst, in GetU64() argument
498 static_cast<const uint64_t *>(GetData(offset_ptr, src_size)); in GetU64()
519 uint32_t DataExtractor::GetMaxU32(offset_t *offset_ptr, in GetMaxU32() argument
522 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
525 uint64_t DataExtractor::GetMaxU64(offset_t *offset_ptr, in GetMaxU64() argument
530 return GetU8(offset_ptr); in GetMaxU64()
532 return GetU16(offset_ptr); in GetMaxU64()
534 return GetU32(offset_ptr); in GetMaxU64()
536 return GetU64(offset_ptr); in GetMaxU64()
540 static_cast<const uint8_t *>(GetData(offset_ptr, byte_size)); in GetMaxU64()
549 uint64_t DataExtractor::GetMaxU64_unchecked(offset_t *offset_ptr, in GetMaxU64_unchecked() argument
553 return GetU8_unchecked(offset_ptr); in GetMaxU64_unchecked()
555 return GetU16_unchecked(offset_ptr); in GetMaxU64_unchecked()
557 return GetU32_unchecked(offset_ptr); in GetMaxU64_unchecked()
559 return GetU64_unchecked(offset_ptr); in GetMaxU64_unchecked()
561 uint64_t res = ReadMaxInt64(&m_start[*offset_ptr], byte_size, m_byte_order); in GetMaxU64_unchecked()
562 *offset_ptr += byte_size; in GetMaxU64_unchecked()
569 int64_t DataExtractor::GetMaxS64(offset_t *offset_ptr, size_t byte_size) const { in GetMaxS64() argument
570 uint64_t u64 = GetMaxU64(offset_ptr, byte_size); in GetMaxS64()
574 uint64_t DataExtractor::GetMaxU64Bitfield(offset_t *offset_ptr, size_t size, in GetMaxU64Bitfield() argument
578 uint64_t uval64 = GetMaxU64(offset_ptr, size); in GetMaxU64Bitfield()
602 int64_t DataExtractor::GetMaxS64Bitfield(offset_t *offset_ptr, size_t size, in GetMaxS64Bitfield() argument
607 int64_t sval64 = GetMaxS64(offset_ptr, size); in GetMaxS64Bitfield()
623 float DataExtractor::GetFloat(offset_t *offset_ptr) const { in GetFloat()
624 return Get<float>(offset_ptr, 0.0f); in GetFloat()
627 double DataExtractor::GetDouble(offset_t *offset_ptr) const { in GetDouble()
628 return Get<double>(offset_ptr, 0.0); in GetDouble()
631 long double DataExtractor::GetLongDouble(offset_t *offset_ptr) const { in GetLongDouble()
635 *offset_ptr += CopyByteOrderedData(*offset_ptr, 10, &val, sizeof(val), in GetLongDouble()
638 *offset_ptr += CopyByteOrderedData(*offset_ptr, sizeof(val), &val, in GetLongDouble()
650 uint64_t DataExtractor::GetAddress(offset_t *offset_ptr) const { in GetAddress()
652 return GetMaxU64(offset_ptr, m_addr_size); in GetAddress()
655 uint64_t DataExtractor::GetAddress_unchecked(offset_t *offset_ptr) const { in GetAddress_unchecked()
657 return GetMaxU64_unchecked(offset_ptr, m_addr_size); in GetAddress_unchecked()
785 const char *DataExtractor::GetCStr(offset_t *offset_ptr) const { in GetCStr()
786 const char *start = reinterpret_cast<const char *>(PeekData(*offset_ptr, 1)); in GetCStr()
803 *offset_ptr += (terminator_or_end - start + 1UL); in GetCStr()
815 const char *DataExtractor::GetCStr(offset_t *offset_ptr, offset_t len) const { in GetCStr() argument
816 const char *cstr = reinterpret_cast<const char *>(PeekData(*offset_ptr, len)); in GetCStr()
821 *offset_ptr += len; in GetCStr()
843 uint64_t DataExtractor::GetULEB128(offset_t *offset_ptr) const { in GetULEB128()
844 const uint8_t *src = PeekData(*offset_ptr, 1); in GetULEB128()
850 *offset_ptr += byte_count; in GetULEB128()
860 int64_t DataExtractor::GetSLEB128(offset_t *offset_ptr) const { in GetSLEB128()
861 const uint8_t *src = PeekData(*offset_ptr, 1); in GetSLEB128()
867 *offset_ptr += byte_count; in GetSLEB128()
877 uint32_t DataExtractor::Skip_LEB128(offset_t *offset_ptr) const { in Skip_LEB128()
879 const uint8_t *src = PeekData(*offset_ptr, 1); in Skip_LEB128()
889 *offset_ptr += src_pos - src; in Skip_LEB128()