38#ifndef LLVM_BINARYFORMAT_MSGPACKREADER_H
39#define LLVM_BINARYFORMAT_MSGPACKREADER_H
135 size_t remainingSpace() {
138 return static_cast<size_t>(
End - Current);
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
Reads MessagePack objects from memory, one at a time.
Reader(const Reader &)=delete
Expected< bool > read(Object &Obj)
Read one object from the input buffer, advancing past it.
Reader & operator=(const Reader &)=delete
Type
MessagePack types as defined in the standard, with the exception of Integer being divided into a sign...
This is an optimization pass for GlobalISel generic memory operations.
Extension types are composed of a user-defined type ID and an uninterpreted sequence of bytes.
int8_t Type
User-defined extension type.
StringRef Bytes
Raw bytes of the extension object.
MessagePack object, represented as a tagged union of C++ types.
int64_t Int
Value for Type::Int.
double Float
Value for Type::Float.
StringRef Raw
Value for Type::String and Type::Binary.
uint64_t UInt
Value for Type::Uint.
bool Bool
Value for Type::Boolean.
ExtensionType Extension
Value for Type::Extension.
size_t Length
Value for Type::Array and Type::Map.