Home | All Classes | Grouped Classes | Index | Search
Interface to read data. More...
Derived from:
none
Derived by:
CL_InputSource_File
CL_InputSource_Memory
CL_InputSource_NetPacket
CL_InputSource_NetStream
CL_InputSource_Socket
CL_InputSource_Zipped
Group: Core (I/O Data)
#include <ClanLib/core.h>
Construction:
Input Source Constructor |
Attributes:
Returns current position in input source. | |
Returns the size of the input source | |
Returns true if the input source is in little endian mode. |
Operations:
Changes input data endianess to the local systems mode. | |
Changes input data endianess to big endian mode. | |
Changes input data endianess to little endian mode. This is the default setting. | |
Reads a signed 64 bit integer from input source. | |
Reads an unsigned 64 bit integer from input source. | |
Reads a signed 32 bit integer from input source. | |
Reads an unsigned 32 bit integer from input source. | |
Reads a signed 16 bit integer from input source. | |
Reads an unsigned 16 bit integer from input source. | |
Reads a signed 8 bit integer from input source. | |
Reads an unsigned 8 bit integer from input source. | |
Reads a signed 16 bit integer (short) from input source. | |
Reads an unsigned 16 bit integer (short) from input source. | |
Reads a signed 8 bit integer (char) from input source. | |
Reads an unsigned 8 bit integer (char) from input source. | |
Reads an ieee format floating point from input source. | |
Reads an ieee format double from input source. | |
Reads a bool from input source. | |
Reads larger amounts of data (no endian and 64 bit conversion). | |
Opens the input source. By default, it is open. | |
Closes the input source. | |
Make a copy of the current inputsource, standing at the same position. | |
Reads a string from the input source. | |
Seeks to the specified position in the input source. | |
Pushes the current input source position. The position can be restored again with pop_position. | |
Pops a previous pushed input source position (returns to the position). |
Implementation:
Detailed description:
!group=Core/IO Data! !header=core.h!CL_InputSource is used to read data from different types of input sources. In most cases, this is regular files and ClanLib zlib compressed datafiles.
To access some system specific input source types, such as datafiles and regular ones, use the static create functions in the CL_InputSourceProvider class.