All Classes |Grouped Classes |Index

Class CL_DataBuffer

General purpose data buffer. More...

Derived from:

None

Derived by:

None

Group:

System (Core)

#include <ClanLib/core.h>

Class Members:

Construction:

CL_DataBuffer

Constructs a data buffer of 0 size.


Attributes:

get_data

Returns a pointer to the data.

get_size

Returns the size of the data.

get_capacity

Returns the capacity of the data buffer object.

operator[]

Returns a char in the buffer.

is_null

Returns true if the buffer is 0 in size.


Operations:

set_size

Resize the buffer.

set_capacity

Preallocate enough memory.