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

#include <hstream.hxx>

Public Member Functions

 HStream ()
 
void addData (const byte *buf, size_t aToAdd)
 
size_t readBytes (byte *buf, size_t aToRead)
 Read some byte to buf as given size. More...
 
size_t skipBytes (size_t aToSkip)
 Skip some byte from stream as given size. More...
 
size_t available () const
 

Private Attributes

std::vector< byteseq
 
size_t pos
 

Detailed Description

Definition at line 26 of file hstream.hxx.

Constructor & Destructor Documentation

◆ HStream()

HStream::HStream ( )

Definition at line 24 of file hstream.cxx.

References pos.

Member Function Documentation

◆ addData()

void HStream::addData ( const byte buf,
size_t  aToAdd 
)

Definition at line 29 of file hstream.cxx.

References seq.

◆ available()

size_t HStream::available ( ) const
Returns
Size of remained stream

Definition at line 50 of file hstream.cxx.

References pos, and seq.

◆ readBytes()

size_t HStream::readBytes ( byte buf,
size_t  aToRead 
)

Read some byte to buf as given size.

Definition at line 31 of file hstream.cxx.

References i, pos, seq, and size.

Referenced by get_byte(), and gz_read().

◆ skipBytes()

size_t HStream::skipBytes ( size_t  aToSkip)

Skip some byte from stream as given size.

Definition at line 41 of file hstream.cxx.

References pos, seq, and size.

Member Data Documentation

◆ pos

size_t HStream::pos
private

Definition at line 47 of file hstream.hxx.

Referenced by available(), readBytes(), and skipBytes().

◆ seq

std::vector<byte> HStream::seq
private

Definition at line 46 of file hstream.hxx.

Referenced by addData(), available(), readBytes(), and skipBytes().


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