Home | All Classes | Grouped Classes | Index | Search

Class CL_OutputSource_Memory

Outputsource writing to memory. More...

Derived from: CL_OutputSource
Derived by: none
Group: Core (I/O Data)

#include <ClanLib/core.h>

Construction:

CL_OutputSource_Memory

Constructs a memory output source.

Attributes:

tell

Returns current position in output source.

size

Returns the size of the output source.

get_data

Get the pointer to the internal data array in the memory source.

Operations:

write

Writes larger amounts of data (no endian and 64 bit conversion).

open

Opens the output source. By default, it is open.

close

Closes the output source.

clone

Make a copy of the current outputsource, standing at the same position.

Detailed description:

!group=Core/IO Data! !header=core.h!

CL_OutputSource_Memory provides a way to write to memory in a way that is abstracted from the user. CL_OutputSource_Memory should not be instantiated directly, but rather CL_OutputSourceProvider should create the appropriate output source.



Questions or comments, write to the
ClanLib mailing list.