![]() |
Public API Reference |
#include <databuf.h>
Inheritance diagram for csDataBuffer:

Public Methods | |
| csDataBuffer (size_t iSize) | |
| Construct an preallocated data buffer (filled with garbage initially). More... | |
| csDataBuffer (char *iData, size_t iSize, bool should_delete=true) | |
| Construct an data buffer object given a existing (new char []) pointer. More... | |
| csDataBuffer (iDataBuffer *source) | |
| Duplicate an existing data buffer. Also appends a 0 char. More... | |
| virtual | ~csDataBuffer () |
| Destroy (free) the buffer. More... | |
| virtual size_t | GetSize () const |
| Query the buffer size. More... | |
| virtual char * | GetData () const |
| Get the buffer as an abstract pointer. More... | |
The object is extremely lightweight and is recommended for use in plugins as a mean to transparently exchange abstract data between plugins.
Definition at line 31 of file databuf.h.
|
|
Construct an preallocated data buffer (filled with garbage initially).
Definition at line 44 of file databuf.h. References SCF_CONSTRUCT_IBASE. |
|
||||||||||||||||
|
Construct an data buffer object given a existing (new char []) pointer.
Definition at line 50 of file databuf.h. References SCF_CONSTRUCT_IBASE. |
|
|
Duplicate an existing data buffer. Also appends a 0 char.
Definition at line 58 of file databuf.h. References iDataBuffer::GetData, iDataBuffer::GetSize, and SCF_CONSTRUCT_IBASE. |
|
|
Destroy (free) the buffer.
|
|
|
Get the buffer as an abstract pointer.
Implements iDataBuffer. |
|
|
Query the buffer size.
Implements iDataBuffer. |