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