Go to the documentation of this file.
28 return StringRef(
reinterpret_cast<const char *
>(LeafData.
data()),
43 if (Short < LF_NUMERIC) {
101 "Buffer contains invalid APSInt type");
119 if (
N.isSigned() || !
N.isIntN(64))
121 "Data is not a numeric value!");
122 Num =
N.getLimitedValue();
146 "Null terminated string buffer is empty!");
153 return readCVRecordFromStream<SymbolKind>(Stream, Offset);
This is an optimization pass for GlobalISel generic memory operations.
static ErrorSuccess success()
Create a success value.
uint64_t bytesRemaining() const
Tagged union holding either a T or a Error.
LLVM_NODISCARD std::pair< StringRef, StringRef > split(char Separator) const
Split into two substrings around the first occurrence of a separator character.
An implementation of BinaryStream which holds its entire data set in a single contiguous buffer.
Error readInteger(T &Dest)
Read an integer of the specified endianness into Dest and update the stream's offset.
An arbitrary precision integer that knows its signedness.
Provides read only access to a subclass of BinaryStream.
Expected< CVSymbol > readSymbolFromStream(BinaryStreamRef Stream, uint32_t Offset)
Error readCString(StringRef &Dest)
Read a null terminated string from Dest.
StringRef getBytesAsCString(ArrayRef< uint8_t > LeafData)
Error consume(BinaryStreamReader &Reader)
Class for arbitrary precision integers.
StringRef - Represent a constant reference to a string, i.e.
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Lightweight error class with error context and mandatory checking.
StringRef getBytesAsCharacters(ArrayRef< uint8_t > LeafData)
Reinterpret a byte array as an array of characters.
size_t size() const
size - Get the array size.
Error consume_numeric(BinaryStreamReader &Reader, uint64_t &Value)
Decodes a numeric leaf value that is known to be a particular type.
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.