LibreOffice Module basic (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SbiBuffer Class Reference

#include <buffer.hxx>

Collaboration diagram for SbiBuffer:
[legend]

Public Member Functions

 SbiBuffer ()
 
void Patch (sal_uInt32, sal_uInt32)
 
void Chain (sal_uInt32)
 
void operator+= (sal_Int8)
 
void operator+= (sal_Int16)
 
void operator+= (sal_uInt8)
 
void operator+= (sal_uInt16)
 
void operator+= (sal_uInt32)
 
void operator+= (sal_Int32)
 
std::vector< sal_uInt8 > && GetBuffer ()
 
sal_uInt32 GetSize () const
 
const ErrCodeGetErrCode () const
 
const OUString & GetErrMessage () const
 

Private Member Functions

template<typename T >
void append (T n)
 

Private Attributes

std::vector< sal_uInt8m_aBuf
 
ErrCode m_aErrCode
 
OUString m_sErrMsg
 

Detailed Description

Definition at line 29 of file buffer.hxx.

Constructor & Destructor Documentation

◆ SbiBuffer()

SbiBuffer::SbiBuffer ( )
inline

Definition at line 37 of file buffer.hxx.

References m_aBuf.

Member Function Documentation

◆ append()

template<typename T >
void SbiBuffer::append ( n)
private

Definition at line 42 of file buffer.cxx.

References ERRCODE_BASIC_PROG_TOO_LARGE, m_aBuf, m_aErrCode, and n.

Referenced by operator+=().

◆ Chain()

void SbiBuffer::Chain ( sal_uInt32  off)

Definition at line 76 of file buffer.cxx.

References ERRCODE_BASIC_INTERNAL_ERROR, GetSize(), i, m_aBuf, m_aErrCode, and m_sErrMsg.

Referenced by SbiCodeGen::BackChain().

◆ GetBuffer()

std::vector< sal_uInt8 > && SbiBuffer::GetBuffer ( )
inline

Definition at line 46 of file buffer.hxx.

References m_aBuf.

Referenced by SbiCodeGen::Save().

◆ GetErrCode()

const ErrCode & SbiBuffer::GetErrCode ( ) const
inline

Definition at line 48 of file buffer.hxx.

References m_aErrCode.

Referenced by SbiCodeGen::Save().

◆ GetErrMessage()

const OUString & SbiBuffer::GetErrMessage ( ) const
inline

Definition at line 49 of file buffer.hxx.

References m_sErrMsg.

Referenced by SbiCodeGen::Save().

◆ GetSize()

sal_uInt32 SbiBuffer::GetSize ( ) const
inline

Definition at line 47 of file buffer.hxx.

References m_aBuf.

Referenced by Chain(), SbiCodeGen::GetPC(), and Patch().

◆ operator+=() [1/6]

void SbiBuffer::operator+= ( sal_Int16  n)

Definition at line 56 of file buffer.cxx.

References append(), and n.

◆ operator+=() [2/6]

void SbiBuffer::operator+= ( sal_Int32  n)

Definition at line 60 of file buffer.cxx.

References append(), and n.

◆ operator+=() [3/6]

void SbiBuffer::operator+= ( sal_Int8  n)

Definition at line 55 of file buffer.cxx.

References append(), and n.

◆ operator+=() [4/6]

void SbiBuffer::operator+= ( sal_uInt16  n)

Definition at line 58 of file buffer.cxx.

References append(), and n.

◆ operator+=() [5/6]

void SbiBuffer::operator+= ( sal_uInt32  n)

Definition at line 59 of file buffer.cxx.

References append(), and n.

◆ operator+=() [6/6]

void SbiBuffer::operator+= ( sal_uInt8  n)

Definition at line 57 of file buffer.cxx.

References append(), and n.

◆ Patch()

void SbiBuffer::Patch ( sal_uInt32  off,
sal_uInt32  val 
)

Definition at line 64 of file buffer.cxx.

References GetSize(), m_aBuf, and m_aErrCode.

Referenced by SbiCodeGen::Patch().

Member Data Documentation

◆ m_aBuf

std::vector<sal_uInt8> SbiBuffer::m_aBuf
private

Definition at line 30 of file buffer.hxx.

Referenced by append(), Chain(), GetBuffer(), GetSize(), Patch(), and SbiBuffer().

◆ m_aErrCode

ErrCode SbiBuffer::m_aErrCode
private

Definition at line 31 of file buffer.hxx.

Referenced by append(), Chain(), GetErrCode(), and Patch().

◆ m_sErrMsg

OUString SbiBuffer::m_sErrMsg
private

Definition at line 32 of file buffer.hxx.

Referenced by Chain(), and GetErrMessage().


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