vdr  2.4.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cDynamicBuffer Class Reference

#include <tools.h>

Public Member Functions

 cDynamicBuffer (int InitialSize=1024)
 
 ~cDynamicBuffer ()
 
void Append (const uchar *Data, int Length)
 
void Append (uchar Data)
 
void Set (int Index, uchar Data)
 
uchar Get (int Index)
 
void Clear (void)
 
ucharData (void)
 
int Length (void)
 

Private Member Functions

bool Realloc (int NewSize)
 
bool Assert (int NewSize)
 

Private Attributes

ucharbuffer
 
int initialSize
 
int size
 
int used
 

Detailed Description

Definition at line 826 of file tools.h.

Constructor & Destructor Documentation

cDynamicBuffer::cDynamicBuffer ( int  InitialSize = 1024)

Definition at line 2300 of file tools.c.

References buffer, initialSize, size, and used.

cDynamicBuffer::~cDynamicBuffer ( )

Definition at line 2307 of file tools.c.

References buffer.

Member Function Documentation

void cDynamicBuffer::Append ( const uchar Data,
int  Length 
)
void cDynamicBuffer::Append ( uchar  Data)
inline

Definition at line 838 of file tools.h.

bool cDynamicBuffer::Assert ( int  NewSize)
inlineprivate

Definition at line 833 of file tools.h.

Referenced by Append().

void cDynamicBuffer::Clear ( void  )
inline

Definition at line 841 of file tools.h.

Referenced by cCaDescriptors::GetCaDescriptors().

uchar* cDynamicBuffer::Data ( void  )
inline
uchar cDynamicBuffer::Get ( int  Index)
inline

Definition at line 840 of file tools.h.

Referenced by cCiCaPmt::ListManagement().

int cDynamicBuffer::Length ( void  )
inline
bool cDynamicBuffer::Realloc ( int  NewSize)
private

Definition at line 2312 of file tools.c.

References buffer, esyslog, initialSize, max(), and size.

void cDynamicBuffer::Set ( int  Index,
uchar  Data 
)
inline

Definition at line 839 of file tools.h.

Referenced by cCiCaPmt::AddCaDescriptors(), and cCiCaPmt::SetListManagement().

Member Data Documentation

uchar* cDynamicBuffer::buffer
private

Definition at line 828 of file tools.h.

Referenced by Append(), cDynamicBuffer(), Realloc(), and ~cDynamicBuffer().

int cDynamicBuffer::initialSize
private

Definition at line 829 of file tools.h.

Referenced by cDynamicBuffer(), and Realloc().

int cDynamicBuffer::size
private

Definition at line 830 of file tools.h.

Referenced by cDynamicBuffer(), and Realloc().

int cDynamicBuffer::used
private

Definition at line 831 of file tools.h.

Referenced by Append(), and cDynamicBuffer().


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