File I/O device. More...
Derived from: | public CL_IODevice |
Derived by: | None |
Group: | IO Data (Core) |
#include <ClanLib/core.h>
Class Members:
Static helper functions: | |
Loads an UTF-8 text file into a string. | |
Loads an file into a byte buffer. |
| |
Access flags. | |
File sharing flags. | |
File opening modes. | |
Optimization Flags. |
| |
Constructs a file object. |
| |
Returns the file permissions. |
| |
Opens a file read only. | |
Close file. | |
Change file permissions. |
| |
Seeking modes. |
| |
Returns true if this object is invalid. | |
Throw an exception if this object is invalid. | |
Returns the size of data stream. | |
Returns the position in the data stream. | |
Returns true if the input source is in little endian mode. | |
Returns the provider for this object. |
| |
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. | |
Writes a nul terminated string to the output source. | |
Writes a text 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. |