Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CRingBuffer Class Reference

#include <RingBuffer.h>

Public Member Functions

 CRingBuffer ()
 
 ~CRingBuffer ()
 
bool Create (unsigned int size)
 
void Destroy ()
 
void Clear ()
 
bool ReadData (char *buf, unsigned int size)
 
bool ReadData (CRingBuffer &rBuf, unsigned int size)
 
bool WriteData (const char *buf, unsigned int size)
 
bool WriteData (CRingBuffer &rBuf, unsigned int size)
 
bool SkipBytes (int skipSize)
 
bool Append (CRingBuffer &rBuf)
 
bool Copy (CRingBuffer &rBuf)
 
char * getBuffer ()
 
unsigned int getSize ()
 
unsigned int getReadPtr () const
 
unsigned int getWritePtr ()
 
unsigned int getMaxReadSize ()
 
unsigned int getMaxWriteSize ()
 

Constructor & Destructor Documentation

◆ CRingBuffer()

CRingBuffer::CRingBuffer ( )

◆ ~CRingBuffer()

CRingBuffer::~CRingBuffer ( )

Member Function Documentation

◆ Append()

bool CRingBuffer::Append ( CRingBuffer & rBuf)

◆ Clear()

void CRingBuffer::Clear ( )

◆ Copy()

bool CRingBuffer::Copy ( CRingBuffer & rBuf)

◆ Create()

bool CRingBuffer::Create ( unsigned int size)

◆ Destroy()

void CRingBuffer::Destroy ( )

◆ getBuffer()

char * CRingBuffer::getBuffer ( )

◆ getMaxReadSize()

unsigned int CRingBuffer::getMaxReadSize ( )

◆ getMaxWriteSize()

unsigned int CRingBuffer::getMaxWriteSize ( )

◆ getReadPtr()

unsigned int CRingBuffer::getReadPtr ( ) const

◆ getSize()

unsigned int CRingBuffer::getSize ( )

◆ getWritePtr()

unsigned int CRingBuffer::getWritePtr ( )

◆ ReadData() [1/2]

bool CRingBuffer::ReadData ( char * buf,
unsigned int size )

◆ ReadData() [2/2]

bool CRingBuffer::ReadData ( CRingBuffer & rBuf,
unsigned int size )

◆ SkipBytes()

bool CRingBuffer::SkipBytes ( int skipSize)

◆ WriteData() [1/2]

bool CRingBuffer::WriteData ( const char * buf,
unsigned int size )

◆ WriteData() [2/2]

bool CRingBuffer::WriteData ( CRingBuffer & rBuf,
unsigned int size )

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