Pyro higlevel API
Classes | Public Member Functions | List of all members
os::CircularBuffer Class Reference

Circular (FIFO) data container. More...

Public Member Functions

 CircularBuffer (int nMaxReserved=3, int nBlockSize=8192)
 
 ~CircularBuffer ()
 
status_t Write (const void *pBuffer, int nSize)
 
ssize_t Read (void *pBuffer, int nSize)
 
void Clear ()
 
ssize_t Size () const
 

Detailed Description

Description:
Since
0.3.7
See Also
os::Window, os::View, os::Looper
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Constructor & Destructor Documentation

CircularBuffer::CircularBuffer ( int  nMaxReserved = 3,
int  nBlockSize = 8192 
)
CircularBuffer::~CircularBuffer ( )

References Clear().

Member Function Documentation

void CircularBuffer::Clear ( )

Referenced by ~CircularBuffer().

ssize_t CircularBuffer::Read ( void *  pBuffer,
int  nSize 
)
ssize_t CircularBuffer::Size ( ) const
status_t CircularBuffer::Write ( const void *  pBuffer,
int  nSize 
)