vdr 2.6.3
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)
 
uchar * Data (void)
 
int Length (void)
 

Private Member Functions

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

Private Attributes

uchar * buffer
 
int initialSize
 
int size
 
int used
 

Detailed Description

Definition at line 873 of file tools.h.

Constructor & Destructor Documentation

◆ cDynamicBuffer()

cDynamicBuffer::cDynamicBuffer ( int  InitialSize = 1024)

Definition at line 2336 of file tools.c.

References buffer, initialSize, size, and used.

◆ ~cDynamicBuffer()

cDynamicBuffer::~cDynamicBuffer ( )

Definition at line 2343 of file tools.c.

References buffer.

Member Function Documentation

◆ Append() [1/2]

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

◆ Append() [2/2]

void cDynamicBuffer::Append ( uchar  Data)
inline

Definition at line 885 of file tools.h.

◆ Assert()

bool cDynamicBuffer::Assert ( int  NewSize)
inlineprivate

Definition at line 880 of file tools.h.

Referenced by Append().

◆ Clear()

void cDynamicBuffer::Clear ( void  )
inline

Definition at line 888 of file tools.h.

Referenced by cCaDescriptors::GetCaDescriptors().

◆ Data()

uchar * cDynamicBuffer::Data ( void  )
inline

◆ Get()

uchar cDynamicBuffer::Get ( int  Index)
inline

Definition at line 887 of file tools.h.

Referenced by cCiCaPmt::ListManagement().

◆ Length()

int cDynamicBuffer::Length ( void  )
inline

◆ Realloc()

bool cDynamicBuffer::Realloc ( int  NewSize)
private

Definition at line 2348 of file tools.c.

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

◆ Set()

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

Definition at line 886 of file tools.h.

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

Member Data Documentation

◆ buffer

uchar* cDynamicBuffer::buffer
private

Definition at line 875 of file tools.h.

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

◆ initialSize

int cDynamicBuffer::initialSize
private

Definition at line 876 of file tools.h.

Referenced by cDynamicBuffer(), and Realloc().

◆ size

int cDynamicBuffer::size
private

Definition at line 877 of file tools.h.

Referenced by cDynamicBuffer(), and Realloc().

◆ used

int cDynamicBuffer::used
private

Definition at line 878 of file tools.h.

Referenced by Append(), and cDynamicBuffer().


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