Beamlib
3.0.1
This is the Beam C++ class library.
|
Create and manipulate a variable sized byte data buffer. More...
#include <BBuffer.h>
Public Member Functions | |
BBuffer (BUInt size=0) | |
~BBuffer () | |
int | setSize (BUInt32 size) |
Sets the bufer size. More... | |
int | setData (const void *data, BUInt32 size) |
Sets buffer data resized to contain the data. More... | |
int | writeData (BUInt32 pos, const void *data, BUInt32 size) |
Writes data into buffer from offset pos. More... | |
char * | data () |
The data. More... | |
BUInt32 | size () |
Size of the buffer in bytes. More... | |
int | resize (BUInt32 size) |
Alternative to setSize() More... | |
Protected Attributes | |
BUInt32 | odataSize |
char * | odata |
BUInt32 | osize |
Create and manipulate a variable sized byte data buffer.
BBuffer::BBuffer | ( | BUInt | size = 0 | ) |
BBuffer::~BBuffer | ( | ) |
int BBuffer::setSize | ( | BUInt32 | size | ) |
Sets the bufer size.
int BBuffer::setData | ( | const void * | data, |
BUInt32 | size | ||
) |
Sets buffer data resized to contain the data.
Writes data into buffer from offset pos.
char * BBuffer::data | ( | ) |
The data.
BUInt32 BBuffer::size | ( | ) |
Size of the buffer in bytes.
|
protected |
|
protected |
|
protected |