#include <Buffer.h>
Public Member Functions | |
Buffer () | |
Creates a new, empty Buffer. | |
Buffer (uint8 *data, uint32 size) | |
Initializes this Buffer with the given data. | |
Buffer (const Buffer &rhs) | |
Initializes this Buffer as a shared copy of the given data. | |
bool | isEmpty () const |
Returns true if the Buffer data is NULL. | |
uint8 * | getData () const |
Returns the internal data buffer. | |
uint32 | getSize () const |
Returns the size of the internal data chunk. | |
void | clear () |
Clears the internal data. | |
void | copy (const Buffer &rhs) |
Forces an actual byte-by-byte copy of the given Buffer. | |
Buffer & | operator= (const Buffer &rhs) |
operator uint8 * () const |
This class represents a blob of binary data. It is used to represent more structured data in a simplistic raw form.
|
Creates a new, empty Buffer.
|
|
Initializes this Buffer with the given data.
|
|
Initializes this Buffer as a shared copy of the given data.
|
|
Clears the internal data.
|
|
Forces an actual byte-by-byte copy of the given Buffer.
|
|
Returns the internal data buffer.
|
|
Returns the size of the internal data chunk.
|
|
Returns true if the Buffer data is NULL.
|
|
|
|
|