vdr 2.7.9
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 879 of file tools.h.

Constructor & Destructor Documentation

◆ cDynamicBuffer()

cDynamicBuffer::cDynamicBuffer ( int InitialSize = 1024)

Definition at line 2342 of file tools.c.

References buffer, initialSize, size, and used.

◆ ~cDynamicBuffer()

cDynamicBuffer::~cDynamicBuffer ( )

Definition at line 2349 of file tools.c.

References buffer.

Member Function Documentation

◆ Append() [1/2]

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

Definition at line 2370 of file tools.c.

References Assert(), buffer, Data(), Length(), and used.

Referenced by cCaDescriptors::GetCaDescriptors().

◆ Append() [2/2]

void cDynamicBuffer::Append ( uchar Data)
inline

Definition at line 891 of file tools.h.

References Assert(), buffer, Data(), and used.

◆ Assert()

bool cDynamicBuffer::Assert ( int NewSize)
inlineprivate

Definition at line 886 of file tools.h.

References Realloc(), and size.

Referenced by Append(), Append(), and Set().

◆ Clear()

void cDynamicBuffer::Clear ( void )
inline

Definition at line 894 of file tools.h.

References used.

Referenced by cCaDescriptors::GetCaDescriptors().

◆ Data()

uchar * cDynamicBuffer::Data ( void )
inline

Definition at line 895 of file tools.h.

References buffer.

Referenced by Append(), Append(), cCiConditionalAccessSupport::SendPMT(), and Set().

◆ Get()

uchar cDynamicBuffer::Get ( int Index)
inline

Definition at line 893 of file tools.h.

References buffer, and used.

◆ Length()

int cDynamicBuffer::Length ( void )
inline

Definition at line 896 of file tools.h.

References used.

Referenced by Append(), and cCiConditionalAccessSupport::SendPMT().

◆ Realloc()

bool cDynamicBuffer::Realloc ( int NewSize)
private

Definition at line 2354 of file tools.c.

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

Referenced by Assert().

◆ Set()

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

Definition at line 892 of file tools.h.

References Assert(), buffer, and Data().

Member Data Documentation

◆ buffer

uchar* cDynamicBuffer::buffer
private

Definition at line 881 of file tools.h.

Referenced by Append(), Append(), cDynamicBuffer(), Data(), Get(), Realloc(), Set(), and ~cDynamicBuffer().

◆ initialSize

int cDynamicBuffer::initialSize
private

Definition at line 882 of file tools.h.

Referenced by cDynamicBuffer(), and Realloc().

◆ size

int cDynamicBuffer::size
private

Definition at line 883 of file tools.h.

Referenced by Assert(), cDynamicBuffer(), and Realloc().

◆ used

int cDynamicBuffer::used
private

Definition at line 884 of file tools.h.

Referenced by Append(), Append(), cDynamicBuffer(), Clear(), Get(), and Length().


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