LLVM 20.0.0git
|
MessagePack object, represented as a tagged union of C++ types. More...
#include "llvm/BinaryFormat/MsgPackReader.h"
Public Member Functions | |
Object () | |
Public Attributes | |
Type | Kind |
union { | |
int64_t Int | |
Value for Type::Int . More... | |
uint64_t UInt | |
Value for Type::Uint . More... | |
bool Bool | |
Value for Type::Boolean . More... | |
double Float | |
Value for Type::Float . More... | |
StringRef Raw | |
Value for Type::String and Type::Binary . More... | |
size_t Length | |
Value for Type::Array and Type::Map . More... | |
ExtensionType Extension | |
Value for Type::Extension . More... | |
}; | |
MessagePack object, represented as a tagged union of C++ types.
All types except Type::Nil
(which has only one value, and so is completely represented by the Kind
itself) map to a exactly one union member.
Definition at line 81 of file MsgPackReader.h.
|
inline |
Definition at line 100 of file MsgPackReader.h.
union { ... } llvm::msgpack::Object::@171 |
bool llvm::msgpack::Object::Bool |
Value for Type::Boolean
.
Definition at line 89 of file MsgPackReader.h.
Referenced by llvm::msgpack::Reader::read(), and llvm::msgpack::Document::readFromBlob().
ExtensionType llvm::msgpack::Object::Extension |
Value for Type::Extension
.
Definition at line 97 of file MsgPackReader.h.
double llvm::msgpack::Object::Float |
Value for Type::Float
.
Definition at line 91 of file MsgPackReader.h.
Referenced by llvm::msgpack::Reader::read(), and llvm::msgpack::Document::readFromBlob().
int64_t llvm::msgpack::Object::Int |
Definition at line 85 of file MsgPackReader.h.
Referenced by llvm::msgpack::Reader::read(), and llvm::msgpack::Document::readFromBlob().
Type llvm::msgpack::Object::Kind |
Definition at line 82 of file MsgPackReader.h.
Referenced by llvm::msgpack::Reader::read(), and llvm::msgpack::Document::readFromBlob().
size_t llvm::msgpack::Object::Length |
Value for Type::Array
and Type::Map
.
Definition at line 95 of file MsgPackReader.h.
Referenced by llvm::msgpack::Reader::read(), and llvm::msgpack::Document::readFromBlob().
StringRef llvm::msgpack::Object::Raw |
Value for Type::String
and Type::Binary
.
Definition at line 93 of file MsgPackReader.h.
Referenced by llvm::msgpack::Document::readFromBlob().
uint64_t llvm::msgpack::Object::UInt |
Value for Type::Uint
.
Definition at line 87 of file MsgPackReader.h.
Referenced by llvm::msgpack::Reader::read(), and llvm::msgpack::Document::readFromBlob().