Home | All Classes | Grouped Classes | Index | Search

# Class CL_OutputSource

Interface to write data to different types of output sources. More...

Derived from: none
Derived by: CL_OutputSource_File CL_OutputSource_Memory CL_OutputSource_NetPacket CL_OutputSource_NetStream CL_OutputSource_Socket CL_OutputSource_Zipped
Group: Core (I/O Data)

#include <ClanLib/core.h>

Construction:

CL_OutputSource | Output Source constructor.

Attributes:

tell | Returns current position in output source.
size | Returns the size of the output source.

Operations:

set_system_mode | Changes output data endianess to the local systems mode.
set_big_endian_mode | Changes output data endianess to big endian mode.
set_little_endian_mode | Changes output data endianess to little endian mode. This is the default setting.
write_int64 | Writes a signed 64 bit integer to output source.
write_uint64 | Writes an unsigned 64 bit integer to output source.
write_int32 | Writes a signed 32 bit integer to output source.
write_uint32 | Writes an unsigned 32 bit integer to output source.
write_int16 | Writes a signed 16 bit integer to output source.
write_uint16 | Writes an unsigned 16 bit integer to output source.
write_int8 | Writes a signed 8 bit integer to output source.
write_uint8 | Writes an unsigned 8 bit integer to output source.
write_short16 | Writes a signed 16 bit integer (short) to output source.
write_ushort16 | Writes an unsigned 16 bit integer (short) to output source.
write_char8 | Writes a signed 8 bit integer (char) to output source.
write_uchar8 | Writes an unsigned 8 bit integer (char) to output source.
write_float32 | Writes an ieee format floating point to output source.
write_float64 | Writes an ieee format double to output source.
write_bool8 | Writes a bool to output source.
write_string | Writes a string to the output source.
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.

Implementation:

little_endian_mode |

Detailed description:

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

CL_OutputSource is used to write data to different types of input sources. In most cases, this is regular files and ClanLib zlib compressed datafiles.

To access some system specific output source types, such as datafiles and regular ones, use the static create functions in the CL_OutputSourceProvider class.

CL_OutputSourceProvider - Interface to open output sources with.

Questions or comments, write to the ClanLib mailing list.