vdr  2.2.0
Public Member Functions | Private Attributes | List of all members
cPacketBuffer Class Reference

Public Member Functions

 cPacketBuffer (void)
 
 ~cPacketBuffer ()
 
void Append (uchar *Data, int Length)
 
void Flush (uchar *Data, int &Length, int MaxLength)
 

Private Attributes

uchardata
 
int size
 
int length
 

Detailed Description

Definition at line 18 of file cutter.c.

Constructor & Destructor Documentation

cPacketBuffer::cPacketBuffer ( void  )

Definition at line 35 of file cutter.c.

References data, length, and size.

Referenced by cPacketStorage::Append().

cPacketBuffer::~cPacketBuffer ( )

Definition at line 41 of file cutter.c.

References data.

Member Function Documentation

void cPacketBuffer::Append ( uchar Data,
int  Length 
)

Appends Length bytes of Data to this packet buffer.

Definition at line 46 of file cutter.c.

References data, length, and size.

void cPacketBuffer::Flush ( uchar Data,
int &  Length,
int  MaxLength 
)

Flushes the content of this packet buffer into the given Data, starting at position Length, and clears the buffer afterwards.

Length will be incremented accordingly. If Length plus the total length of the stored packets would exceed MaxLength, nothing is copied.

Definition at line 61 of file cutter.c.

References data, and length.

Member Data Documentation

uchar* cPacketBuffer::data
private

Definition at line 20 of file cutter.c.

Referenced by Append(), cPacketBuffer(), Flush(), and ~cPacketBuffer().

int cPacketBuffer::length
private

Definition at line 22 of file cutter.c.

Referenced by Append(), cPacketBuffer(), and Flush().

int cPacketBuffer::size
private

Definition at line 21 of file cutter.c.

Referenced by Append(), and cPacketBuffer().


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