|
sipxportlib
Version 3.3
|
#include <CircularBuffer.h>

Public Types | |
| typedef char | ElementType |
Public Member Functions | |
Creators | |
| CircularBuffer (unsigned long capacity=0) | |
| Default constructor. More... | |
| ~CircularBuffer () | |
Manipulators | |
| void | initialize (unsigned long capacity) |
| bool | write (const ElementType *buffer, unsigned long bufferSize, unsigned long *newSize=0, unsigned long *previousSize=0) |
| bool | fill (ElementType value, unsigned long count, unsigned long *newSize=0, unsigned long *previousSize=0) |
| unsigned long | extract (ElementType *buffer, unsigned long bufferSize) |
Accessors | |
| unsigned long | getSize () |
| typedef char ElementType |
| CircularBuffer | ( | unsigned long | capacity = 0 | ) |
Default constructor.
| ~CircularBuffer | ( | ) |
Construct circular buffer of given size in char
| [in] | capacity | - size of buffer in char |
| void initialize | ( | unsigned long | capacity | ) |
| bool write | ( | const ElementType * | buffer, |
| unsigned long | bufferSize, | ||
| unsigned long * | newSize = 0, |
||
| unsigned long * | previousSize = 0 |
||
| ) |
| bool fill | ( | ElementType | value, |
| unsigned long | count, | ||
| unsigned long * | newSize = 0, |
||
| unsigned long * | previousSize = 0 |
||
| ) |
| unsigned long extract | ( | ElementType * | buffer, |
| unsigned long | bufferSize | ||
| ) |
| unsigned long getSize | ( | ) |
1.8.11