LLVM 22.0.0git
llvm::msgpack::Object Struct Reference

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...
}; 

Detailed Description

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 82 of file MsgPackReader.h.

Constructor & Destructor Documentation

◆ Object()

llvm::msgpack::Object::Object ( )
inline

Definition at line 101 of file MsgPackReader.h.

References Int, and Kind.

Member Data Documentation

◆ [union]

union { ... } llvm::msgpack::Object

◆ Bool

bool llvm::msgpack::Object::Bool

◆ Extension

ExtensionType llvm::msgpack::Object::Extension

Value for Type::Extension.

Definition at line 98 of file MsgPackReader.h.

◆ Float

double llvm::msgpack::Object::Float

◆ Int

int64_t llvm::msgpack::Object::Int

◆ Kind

Type llvm::msgpack::Object::Kind

◆ Length

size_t llvm::msgpack::Object::Length

◆ Raw

StringRef llvm::msgpack::Object::Raw

Value for Type::String and Type::Binary.

Definition at line 94 of file MsgPackReader.h.

Referenced by llvm::msgpack::Document::readFromBlob().

◆ UInt

uint64_t llvm::msgpack::Object::UInt

Value for Type::Uint.

Definition at line 88 of file MsgPackReader.h.

Referenced by llvm::msgpack::Reader::read(), and llvm::msgpack::Document::readFromBlob().


The documentation for this struct was generated from the following file: