LibreOffice Module package (master) 1
Public Member Functions | Private Attributes | List of all members
MemoryByteGrabber Class Referencefinal

#include <MemoryByteGrabber.hxx>

Public Member Functions

 MemoryByteGrabber (const css::uno::Sequence< sal_Int8 > &rBuffer)
 
 MemoryByteGrabber (css::uno::Sequence< sal_Int8 > &&)=delete
 
const sal_Int8getCurrentPos () const
 
sal_Int32 remainingSize () const
 
void skipBytes (sal_Int32 nBytesToSkip)
 
sal_Int16 ReadInt16 ()
 
sal_Int16 ReadUInt16 ()
 
sal_Int32 ReadInt32 ()
 
sal_uInt32 ReadUInt32 ()
 
sal_uInt64 ReadUInt64 ()
 

Private Attributes

const sal_Int8mpBuffer
 
sal_Int32 mnCurrent
 
sal_Int32 mnEnd
 

Detailed Description

Definition at line 24 of file MemoryByteGrabber.hxx.

Constructor & Destructor Documentation

◆ MemoryByteGrabber() [1/2]

MemoryByteGrabber::MemoryByteGrabber ( const css::uno::Sequence< sal_Int8 > &  rBuffer)
inline

Definition at line 29 of file MemoryByteGrabber.hxx.

References getLength().

◆ MemoryByteGrabber() [2/2]

MemoryByteGrabber::MemoryByteGrabber ( css::uno::Sequence< sal_Int8 > &&  )
delete

Member Function Documentation

◆ getCurrentPos()

const sal_Int8 * MemoryByteGrabber::getCurrentPos ( ) const
inline

Definition at line 37 of file MemoryByteGrabber.hxx.

References mnCurrent, and mpBuffer.

◆ ReadInt16()

sal_Int16 MemoryByteGrabber::ReadInt16 ( )
inline

Definition at line 53 of file MemoryByteGrabber.hxx.

References mnCurrent, mnEnd, and mpBuffer.

◆ ReadInt32()

sal_Int32 MemoryByteGrabber::ReadInt32 ( )
inline

Definition at line 71 of file MemoryByteGrabber.hxx.

References mnCurrent, mnEnd, and mpBuffer.

◆ ReadUInt16()

sal_Int16 MemoryByteGrabber::ReadUInt16 ( )
inline

Definition at line 62 of file MemoryByteGrabber.hxx.

References mnCurrent, mnEnd, and mpBuffer.

◆ ReadUInt32()

sal_uInt32 MemoryByteGrabber::ReadUInt32 ( )
inline

Definition at line 83 of file MemoryByteGrabber.hxx.

References mnCurrent, mnEnd, and mpBuffer.

◆ ReadUInt64()

sal_uInt64 MemoryByteGrabber::ReadUInt64 ( )
inline

Definition at line 95 of file MemoryByteGrabber.hxx.

References mnCurrent, mnEnd, and mpBuffer.

◆ remainingSize()

sal_Int32 MemoryByteGrabber::remainingSize ( ) const
inline

Definition at line 39 of file MemoryByteGrabber.hxx.

References mnCurrent, and mnEnd.

◆ skipBytes()

void MemoryByteGrabber::skipBytes ( sal_Int32  nBytesToSkip)
inline
Exceptions
css::io::NotConnectedException
css::io::BufferSizeExceededException
css::io::IOException
css::uno::RuntimeException

Definition at line 47 of file MemoryByteGrabber.hxx.

References mnCurrent.

Member Data Documentation

◆ mnCurrent

sal_Int32 MemoryByteGrabber::mnCurrent
private

◆ mnEnd

sal_Int32 MemoryByteGrabber::mnEnd
private

◆ mpBuffer

const sal_Int8* MemoryByteGrabber::mpBuffer
private

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