
I/O Device interface. More...
Derived from: | None |
Derived by: | CL_File, CL_HTTPServerConnection, CL_IODevice_Memory, CL_NetStream, CL_PipeConnection, CL_TCPConnection |
Group: | IO Data (Core) |
#include <ClanLib/core.h>
Class Members:
Enumerations: | |
Seeking modes. |
| |
Constructs an I/O device. |
| |
Returns the size of data stream. | |
Returns the position in the data stream. | |
Returns true if the input source is in little endian mode. |
| |
Send data to device. | |
Receive data from device. | |
Peek data from device (data is left in the buffer). | |
Seek in data stream. | |
Alias for receive(data, len, receive_all). | |
Alias for send(data, len, send_all). | |
Changes input data endianess to the local systems mode. | |
Changes input data endianess to big endian mode. (Default is little endian). | |
Changes input data endianess to little endian mode. This is the default setting. | |
Writes a signed 64 bit integer to output source. | |
Writes an unsigned 64 bit integer to output source. | |
Writes a signed 32 bit integer to output source. | |
Writes an unsigned 32 bit integer to output source. | |
Writes a signed 16 bit integer to output source. | |
Writes an unsigned 16 bit integer to output source. | |
Writes a signed 8 bit integer to output source. | |
Writes an unsigned 8 bit integer to output source. | |
Writes a float to output source. | |
Writes a string to the output source. | |
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 float from input source. | |
Reads a string from the input source. | |
Reads a nul terminated string from the input source. | |
Reads a string from the input source where the source is a text file. | |
Create a new CL_IODevice referencing the same resource. |
Detailed description:
This class can store basic datatypes and retain portability (using the specified endian mode) The supported datatypes are: cl_int64, cl_int32, cl_int16 and cl_int8 The CL_String datatype is supported - Using Size(cl_int32), Charactor Data (CL_StringRef8 characters)