Lines Matching refs:byte_size
108 static inline uint64_t ReadMaxInt64(const uint8_t *data, size_t byte_size, in ReadMaxInt64() argument
112 for (size_t i = 0; i < byte_size; ++i) in ReadMaxInt64()
116 for (size_t i = 0; i < byte_size; ++i) in ReadMaxInt64()
117 res = (res << 8) | data[byte_size - 1 - i]; in ReadMaxInt64()
519 size_t byte_size) const { in GetMaxU32()
520 lldbassert(byte_size > 0 && byte_size <= 4 && "GetMaxU32 invalid byte_size!"); in GetMaxU32()
521 return GetMaxU64(offset_ptr, byte_size); in GetMaxU32()
525 size_t byte_size) const { in GetMaxU64()
526 lldbassert(byte_size > 0 && byte_size <= 8 && "GetMaxU64 invalid byte_size!"); in GetMaxU64()
527 switch (byte_size) { in GetMaxU64()
539 static_cast<const uint8_t *>(GetData(offset_ptr, byte_size)); in GetMaxU64()
542 return ReadMaxInt64(data, byte_size, m_byte_order); in GetMaxU64()
549 size_t byte_size) const { in GetMaxU64_unchecked()
550 switch (byte_size) { 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()
569 uint64_t u64 = GetMaxU64(offset_ptr, byte_size); in GetMaxS64()
570 return llvm::SignExtend64(u64, 8 * byte_size); in GetMaxS64()