LibreOffice Module binaryurp (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
binaryurp::Unmarshal Class Reference

#include <unmarshal.hxx>

Collaboration diagram for binaryurp::Unmarshal:
[legend]

Public Member Functions

 Unmarshal (rtl::Reference< Bridge > bridge, ReaderState &state, com::sun::star::uno::Sequence< sal_Int8 > const &buffer)
 
 ~Unmarshal ()
 
sal_uInt8 read8 ()
 
sal_uInt16 read16 ()
 
sal_uInt32 read32 ()
 
com::sun::star::uno::TypeDescription readType ()
 
OUString readOid ()
 
rtl::ByteSequence readTid ()
 
BinaryAny readValue (com::sun::star::uno::TypeDescription const &type)
 
void done () const
 

Private Member Functions

 Unmarshal (const Unmarshal &)=delete
 
Unmarshaloperator= (const Unmarshal &)=delete
 
void check (sal_Int32 size) const
 
sal_uInt32 readCompressed ()
 
sal_uInt16 readCacheIndex ()
 
sal_uInt64 read64 ()
 
OUString readString ()
 
BinaryAny readSequence (com::sun::star::uno::TypeDescription const &type)
 
void readMemberValues (com::sun::star::uno::TypeDescription const &type, std::vector< BinaryAny > *values)
 

Private Attributes

rtl::Reference< Bridgebridge_
 
ReaderStatestate_
 
com::sun::star::uno::Sequence< sal_Int8buffer_
 
sal_uInt8 const * data_
 
sal_uInt8 const * end_
 

Detailed Description

Definition at line 40 of file unmarshal.hxx.

Constructor & Destructor Documentation

◆ Unmarshal() [1/2]

binaryurp::Unmarshal::Unmarshal ( rtl::Reference< Bridge bridge,
ReaderState state,
com::sun::star::uno::Sequence< sal_Int8 > const &  buffer 
)

◆ ~Unmarshal()

binaryurp::Unmarshal::~Unmarshal ( )

Definition at line 102 of file unmarshal.cxx.

◆ Unmarshal() [2/2]

binaryurp::Unmarshal::Unmarshal ( const Unmarshal )
privatedelete

Member Function Documentation

◆ check()

void binaryurp::Unmarshal::check ( sal_Int32  size) const
private

Definition at line 363 of file unmarshal.cxx.

References binaryurp::cache::size.

◆ done()

void binaryurp::Unmarshal::done ( ) const

Definition at line 356 of file unmarshal.cxx.

Referenced by binaryurp::Reader::execute().

◆ operator=()

Unmarshal & binaryurp::Unmarshal::operator= ( const Unmarshal )
privatedelete

◆ read16()

sal_uInt16 binaryurp::Unmarshal::read16 ( )

Definition at line 109 of file unmarshal.cxx.

References check(), and n.

Referenced by binaryurp::Reader::readMessage().

◆ read32()

sal_uInt32 binaryurp::Unmarshal::read32 ( )

Definition at line 115 of file unmarshal.cxx.

References check(), and n.

◆ read64()

sal_uInt64 binaryurp::Unmarshal::read64 ( )
private

Definition at line 384 of file unmarshal.cxx.

References check(), and n.

◆ read8()

sal_uInt8 binaryurp::Unmarshal::read8 ( )

Definition at line 104 of file unmarshal.cxx.

References check().

Referenced by binaryurp::Reader::readMessage().

◆ readCacheIndex()

sal_uInt16 binaryurp::Unmarshal::readCacheIndex ( )
private

Definition at line 375 of file unmarshal.cxx.

References idx, binaryurp::cache::ignore, and binaryurp::cache::size.

◆ readCompressed()

sal_uInt32 binaryurp::Unmarshal::readCompressed ( )
private

Definition at line 370 of file unmarshal.cxx.

References n.

◆ readMemberValues()

void binaryurp::Unmarshal::readMemberValues ( com::sun::star::uno::TypeDescription const &  type,
std::vector< BinaryAny > *  values 
)
private

Definition at line 466 of file unmarshal.cxx.

References i, type, and values.

◆ readOid()

OUString binaryurp::Unmarshal::readOid ( )

Definition at line 203 of file unmarshal.cxx.

References i, idx, binaryurp::cache::ignore, and readString().

Referenced by binaryurp::Reader::readMessage().

◆ readSequence()

BinaryAny binaryurp::Unmarshal::readSequence ( com::sun::star::uno::TypeDescription const &  type)
private

◆ readString()

OUString binaryurp::Unmarshal::readString ( )
private

Definition at line 396 of file unmarshal.cxx.

References check(), n, and SAL_MAX_INT32.

◆ readTid()

rtl::ByteSequence binaryurp::Unmarshal::readTid ( )

◆ readType()

css::uno::TypeDescription binaryurp::Unmarshal::readType ( )

◆ readValue()

BinaryAny binaryurp::Unmarshal::readValue ( com::sun::star::uno::TypeDescription const &  type)

Definition at line 248 of file unmarshal.cxx.

References i, p, readString(), t, type, and v.

Referenced by binaryurp::Reader::readMessage(), and binaryurp::Reader::readReplyMessage().

Member Data Documentation

◆ bridge_

rtl::Reference< Bridge > binaryurp::Unmarshal::bridge_
private

Definition at line 84 of file unmarshal.hxx.

◆ buffer_

com::sun::star::uno::Sequence< sal_Int8 > binaryurp::Unmarshal::buffer_
private

Definition at line 86 of file unmarshal.hxx.

◆ data_

sal_uInt8 const* binaryurp::Unmarshal::data_
private

Definition at line 87 of file unmarshal.hxx.

◆ end_

sal_uInt8 const* binaryurp::Unmarshal::end_
private

Definition at line 88 of file unmarshal.hxx.

◆ state_

ReaderState& binaryurp::Unmarshal::state_
private

Definition at line 85 of file unmarshal.hxx.


The documentation for this class was generated from the following files: