CL_InputSource_Memory - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# Class CL_InputSource_Memory

Interface to read data from a memory source. More...

Derived from: CL_InputSource
Derived by: CL_InputSource_Raw
Group: Core (I/O Data)

#include <ClanLib/core.h>

Construction:

CL_InputSource_Memory | Input Source Memory constructor.

Attributes:

tell | Returns current position in input source.
size | Returns the size of the input source
get_data | Get the pointer to the internal data array in the memory source.

Operations:

read | Reads larger amounts of data (no endian and 64 bit conversion).
open | Opens the input source. By default, it is open.
close | Closes the input source.
clone | Make a copy of the current inputsource, standing at the same position.
seek | Seeks to the specified position in the input source.
push_position | Pushes the current input source position.
pop_position | Pops a previous pushed input source position (returns to the position).

Detailed description:

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

CL_InputSource_Memory is used to read data from a memory source. CL_InputSourceProvider - Interface to open input sources with.

Questions or comments, write to the ClanLib mailing list.