csDataBuffer Class Reference
This is a implementation of iDataBuffer interface. More...
#include <csutil/databuf.h>
Inheritance diagram for csDataBuffer:

Public Member Functions | |
csDataBuffer (iDataBuffer *source) | |
Duplicate an existing data buffer. Also appends a 0 char. | |
csDataBuffer (char *iData, size_t iSize, bool should_delete=true) | |
Construct an data buffer object given a existing (new char []) pointer. | |
csDataBuffer (size_t iSize) | |
Construct an preallocated data buffer (filled with garbage initially). | |
virtual char * | GetData () const |
Get the buffer as an abstract pointer. | |
virtual size_t | GetSize () const |
Query the buffer size. | |
virtual | ~csDataBuffer () |
Destroy (free) the buffer. | |
Public Attributes | |
SCF_DECLARE_IBASE |
Detailed Description
This is a implementation of iDataBuffer interface.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 32 of file databuf.h.
Constructor & Destructor Documentation
|
Construct an preallocated data buffer (filled with garbage initially).
Definition at line 45 of file databuf.h. References SCF_CONSTRUCT_IBASE. |
|
Construct an data buffer object given a existing (new char []) pointer.
Definition at line 54 of file databuf.h. References SCF_CONSTRUCT_IBASE. |
|
Duplicate an existing data buffer. Also appends a 0 char.
Definition at line 63 of file databuf.h. References iDataBuffer::GetData(), iDataBuffer::GetSize(), and SCF_CONSTRUCT_IBASE. |
|
Destroy (free) the buffer.
Definition at line 74 of file databuf.h. References SCF_DESTRUCT_IBASE. |
Member Function Documentation
|
Get the buffer as an abstract pointer.
Implements iDataBuffer. |
|
Query the buffer size.
Implements iDataBuffer. |
The documentation for this class was generated from the following file:
- csutil/databuf.h
Generated for Crystal Space by doxygen 1.4.4