vdr 2.7.6
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 17 of file cutter.c.

Constructor & Destructor Documentation

◆ cPacketBuffer()

cPacketBuffer::cPacketBuffer ( void )

Definition at line 34 of file cutter.c.

References data, length, and size.

◆ ~cPacketBuffer()

cPacketBuffer::~cPacketBuffer ( )

Definition at line 40 of file cutter.c.

References data.

Member Function Documentation

◆ Append()

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

Appends Length bytes of Data to this packet buffer.

Definition at line 45 of file cutter.c.

References data, length, and size.

◆ Flush()

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 60 of file cutter.c.

References data, and length.

Member Data Documentation

◆ data

uchar* cPacketBuffer::data
private

Definition at line 19 of file cutter.c.

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

◆ length

int cPacketBuffer::length
private

Definition at line 21 of file cutter.c.

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

◆ size

int cPacketBuffer::size
private

Definition at line 20 of file cutter.c.

Referenced by Append(), and cPacketBuffer().


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