10 #ifndef LLVM_SUPPORT_DATAEXTRACTOR_H
11 #define LLVM_SUPPORT_DATAEXTRACTOR_H
14 #include "llvm/Support/DataTypes.h"
19 uint8_t IsLittleEndian;
28 : Data(Data), IsLittleEndian(IsLittleEndian), AddressSize(AddressSize) {}
59 const char *
getCStr(uint32_t *offset_ptr)
const;
85 uint64_t
getUnsigned(uint32_t *offset_ptr, uint32_t byte_size)
const;
110 int64_t
getSigned(uint32_t *offset_ptr, uint32_t
size)
const;
147 uint8_t
getU8(uint32_t *offset_ptr)
const;
172 uint8_t *
getU8(uint32_t *offset_ptr, uint8_t *dst, uint32_t count)
const;
190 uint16_t
getU16(uint32_t *offset_ptr)
const;
215 uint16_t *
getU16(uint32_t *offset_ptr, uint16_t *dst, uint32_t count)
const;
231 uint32_t
getU32(uint32_t *offset_ptr)
const;
256 uint32_t *
getU32(uint32_t *offset_ptr, uint32_t *dst, uint32_t count)
const;
272 uint64_t
getU64(uint32_t *offset_ptr)
const;
297 uint64_t *
getU64(uint32_t *offset_ptr, uint64_t *dst, uint32_t count)
const;
315 int64_t
getSLEB128(uint32_t *offset_ptr)
const;
333 uint64_t
getULEB128(uint32_t *offset_ptr)
const;
348 return offset + length >= offset &&
isValidOffset(offset + length - 1);
size_t size() const
size - Get the string size.
StringRef - Represent a constant reference to a string, i.e.