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) {}
348 return offset + length >= offset &&
isValidOffset(offset + length - 1);
auto count(R &&Range, const E &Element) -> typename std::iterator_traits< decltype(std::begin(Range))>::difference_type
Wrapper function around std::count to count the number of times an element Element occurs in the give...
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
StringRef - Represent a constant reference to a string, i.e.