#include <databuffer.h>
Public Member Functions | |
Construction | |
| CL_DataBuffer () | |
| Constructs a data buffer. | |
| CL_DataBuffer (const CL_DataBuffer ©) | |
| CL_DataBuffer (int size, CL_MemoryPool *pool=0) | |
| CL_DataBuffer (const void *data, int size, CL_MemoryPool *pool=0) | |
| CL_DataBuffer (const CL_DataBuffer &data, int pos, int size=-1, CL_MemoryPool *pool=0) | |
| ~CL_DataBuffer () | |
Attributes | |
| char * | get_data () |
| Returns a pointer to the data. | |
| const char * | get_data () const |
| int | get_size () const |
| Returns the size of the data. | |
| int | get_capacity () const |
| Returns the capacity of the data buffer object. | |
| char & | operator[] (int i) |
| Returns a char in the buffer. | |
| const char & | operator[] (int i) const |
| char & | operator[] (unsigned int i) |
| const char & | operator[] (unsigned int i) const |
| bool | is_null () const |
| Returns true if the buffer is 0 in size. | |
Operations | |
| CL_DataBuffer & | operator= (const CL_DataBuffer ©) |
| void | set_size (int size) |
| Resize the buffer. | |
| void | set_capacity (int capacity) |
| Preallocate enough memory. | |
|
|
Constructs a data buffer.
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
Returns the capacity of the data buffer object.
|
|
|
|
|
|
Returns a pointer to the data.
|
|
|
Returns the size of the data.
|
|
|
Returns true if the buffer is 0 in size.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns a char in the buffer.
|
|
|
Preallocate enough memory.
|
|
|
Resize the buffer.
|
1.4.6