LLVM  10.0.0svn

Reads MessagePack objects from memory, one at a time. More...

#include "llvm/BinaryFormat/MsgPackReader.h"

## Public Member Functions

Construct a reader, keeping a reference to the InputBuffer. More...

Construct a reader, keeping a reference to the Input. More...

template<class T >

template<class T >

template<class T >

template<class T >

template<class T >

## Detailed Description

Reads MessagePack objects from memory, one at a time.

Definition at line 98 of file MsgPackReader.h.

## Constructor & Destructor Documentation

Construct a reader, keeping a reference to the InputBuffer.

Definition at line 22 of file MsgPackReader.cpp.

Construct a reader, keeping a reference to the Input.

Definition at line 26 of file MsgPackReader.cpp.

delete

## ◆ operator=()

delete

The Obj is updated with the kind of the object read, and the corresponding union member is updated.

For the collection objects (Array and Map), only the length is read, and the caller must make and additional N calls (in the case of Array) or N*2 calls (in the case of Map) to Read to retrieve the collection elements.

Parameters
 [out] Obj filled with next object on success.
Returns
true when object successfully read, false when at end of input (and so Obj was not updated), otherwise an error.

Definition at line 28 of file MsgPackReader.cpp.

template<class T >

Definition at line 221 of file MsgPackReader.cpp.

template<class T >

Definition at line 191 of file MsgPackReader.cpp.

References llvm::msgpack::Object::Int, llvm::make_error_code(), and T.

template<class T >

Definition at line 211 of file MsgPackReader.cpp.

References llvm::msgpack::Object::Length, llvm::make_error_code(), and T.

template<class T >

Definition at line 181 of file MsgPackReader.cpp.

References llvm::make_error_code(), Size, and T.