LLVM 19.0.0git
Public Member Functions | Public Attributes | List of all members
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 81 of file MsgPackReader.h.

Constructor & Destructor Documentation

◆ Object()

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

Definition at line 100 of file MsgPackReader.h.

Member Data Documentation

◆ 

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

◆ Bool

bool llvm::msgpack::Object::Bool

◆ Extension

ExtensionType llvm::msgpack::Object::Extension

Value for Type::Extension.

Definition at line 97 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 93 of file MsgPackReader.h.

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

◆ UInt

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().


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