#include <yateclass.h>
Inheritance diagram for DataBlock:
Public Member Functions | |
DataBlock () | |
DataBlock (const DataBlock &value) | |
DataBlock (void *value, unsigned int len, bool copyData=true) | |
virtual | ~DataBlock () |
virtual void * | getObject (const String &name) const |
void * | data () const |
bool | null () const |
unsigned int | length () const |
void | clear (bool deleteData=true) |
DataBlock & | assign (void *value, unsigned int len, bool copyData=true) |
void | append (const DataBlock &value) |
void | append (const String &value) |
void | insert (const DataBlock &value) |
void | truncate (unsigned int len) |
void | cut (int len) |
DataBlock & | operator= (const DataBlock &value) |
DataBlock & | operator+= (const DataBlock &value) |
DataBlock & | operator+= (const String &value) |
bool | convert (const DataBlock &src, const String &sFormat, const String &dFormat, unsigned maxlen=0) |
Static Public Member Functions | |
static const DataBlock & | empty () |
The DataBlock holds a data buffer with no specific formatting.
|
Constructs an empty data block |
|
Copy constructor |
|
Constructs an initialized data block
|
|
Destroys the data, disposes the memory. |
|
Append a String to the current block
|
|
Append data to the current block
|
|
Assign data to the object
|
|
Clear the data and optionally free the memory
|
|
Convert data from a different format
|
|
Cut off a number of bytes from the data block
|
|
Get a pointer to the stored data.
|
|
A static empty data block |
|
Get a pointer to a derived class given that class name
Reimplemented from GenObject. |
|
Insert data before the current block
|
|
Get the length of the stored data.
|
|
Checks if the block holds a NULL pointer.
|
|
Appending operator for Strings. |
|
Appending operator. |
|
Assignment operator. |
|
Truncate the data block
|