#include <BBuffer.h>
Public Member Functions | |
BBuffer () | |
Create and manipulate a data buffer. On creation the buffer size defaults to 1024 bytes. | |
~BBuffer () | |
int | setSize (uint32_t size) |
Sets the bufer size. | |
int | setData (const void *data, uint32_t size) |
Sets buffer data resized to contain the data. | |
int | writeData (uint32_t pos, const void *data, uint32_t size) |
Writes data into buffer from offset pos. | |
void * | data () |
The data. | |
uint32_t | size () |
Size of the buffer in bytes. | |
Private Attributes | |
uint32_t | osize |
uint32_t | odatasize |
void * | odata |
BBuffer::BBuffer | ( | ) |
Create and manipulate a data buffer. On creation the buffer size defaults to 1024 bytes.
BBuffer::~BBuffer | ( | ) |
int BBuffer::setSize | ( | uint32_t | size | ) |
Sets the bufer size.
int BBuffer::setData | ( | const void * | data, | |
uint32_t | size | |||
) |
Sets buffer data resized to contain the data.
int BBuffer::writeData | ( | uint32_t | pos, | |
const void * | data, | |||
uint32_t | size | |||
) |
Writes data into buffer from offset pos.
void * BBuffer::data | ( | ) |
The data.
uint32_t BBuffer::size | ( | ) |
Size of the buffer in bytes.
uint32_t BBuffer::osize [private] |
uint32_t BBuffer::odatasize [private] |
void* BBuffer::odata [private] |