Very Simple Cross-Platform Library
|
#include <Buffer.h>
Public Member Functions | |
Buffer (size_t capacity) | |
~Buffer () | |
size_t | getCapacity () const |
const unsigned char * | getData () const |
unsigned char * | getData () |
size_t | getLength () const |
bool | isEmpty () const |
size_t | getAvailable () const |
void | reset () |
size_t | addLength (size_t n) |
size_t | append (const void *src, size_t size) |
size_t | extract (void *dest, size_t size, size_t offset=0) const |
Private Attributes | |
unsigned char * | data |
size_t | capacity |
size_t | length |
Base class for buffers. It maintains a memory area of a certain capacity and the length of the data in the buffer.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |