iostream topic
CategoryIOStream
SDL provides an abstract interface for reading and writing data streams. It offers implementations for files, memory, etc, and the app can provide their own implementations, too.
SDL_IOStream is not related to the standard C++ iostream class, other than both are abstract interfaces to read/write data.
Classes
Functions
-
sdlCloseIo(
Pointer< iostreamSdlIoStream> context) → bool - Close and free an allocated SDL_IOStream structure.
-
sdlFlushIo(
Pointer< iostreamSdlIoStream> context) → bool - Flush any buffered data in the stream.
-
sdlGetIoProperties(
Pointer< iostreamSdlIoStream> context) → int - Get the properties associated with an SDL_IOStream.
-
sdlGetIoSize(
Pointer< iostreamSdlIoStream> context) → int - Use this function to get the size of the data stream in an SDL_IOStream.
-
sdlGetIoStatus(
Pointer< iostreamSdlIoStream> context) → int - Query the stream status of an SDL_IOStream.
-
sdlIoFromConstMem(
Pointer< iostreamNativeType> mem, int size) → Pointer<SdlIoStream> - Use this function to prepare a read-only memory buffer for use with SDL_IOStream.
-
sdlIoFromDynamicMem(
) → Pointer< iostreamSdlIoStream> - Use this function to create an SDL_IOStream that is backed by dynamically allocated memory.
-
sdlIoFromFile(
String? file, String? mode) → Pointer< iostreamSdlIoStream> - Use this function to create a new SDL_IOStream structure for reading from and/or writing to a named file.
-
sdlIoFromMem(
Pointer< iostreamNativeType> mem, int size) → Pointer<SdlIoStream> - Use this function to prepare a read-write memory buffer for use with SDL_IOStream.
-
sdlIOprintf(
Pointer< iostreamSdlIoStream> context, String? fmt) → int - Print to an SDL_IOStream data stream.
-
sdlIOvprintf(
Pointer< iostreamSdlIoStream> context, String? fmt) → int - Print to an SDL_IOStream data stream.
-
sdlLoadFile(
String? file, Pointer< iostreamUint32> datasize) → Pointer<NativeType> - Load all the data from a file path.
-
sdlLoadFileIo(
Pointer< iostreamSdlIoStream> src, Pointer<Uint32> datasize, bool closeio) → Pointer<NativeType> - Load all the data from an SDL data stream.
-
sdlOpenIo(
Pointer< iostreamSdlIoStreamInterface> iface, Pointer<NativeType> userdata) → Pointer<SdlIoStream> - Create a custom SDL_IOStream.
-
sdlReadIo(
Pointer< iostreamSdlIoStream> context, Pointer<NativeType> ptr, int size) → int - Read from a data source.
-
sdlReadS16Be(
Pointer< iostreamSdlIoStream> src, Pointer<Int16> value) → bool - Use this function to read 16 bits of big-endian data from an SDL_IOStream and return in native format.
-
sdlReadS16Le(
Pointer< iostreamSdlIoStream> src, Pointer<Int16> value) → bool - Use this function to read 16 bits of little-endian data from an SDL_IOStream and return in native format.
-
sdlReadS32Be(
Pointer< iostreamSdlIoStream> src, Pointer<Int32> value) → bool - Use this function to read 32 bits of big-endian data from an SDL_IOStream and return in native format.
-
sdlReadS32Le(
Pointer< iostreamSdlIoStream> src, Pointer<Int32> value) → bool - Use this function to read 32 bits of little-endian data from an SDL_IOStream and return in native format.
-
sdlReadS64Be(
Pointer< iostreamSdlIoStream> src, Pointer<Int64> value) → bool - Use this function to read 64 bits of big-endian data from an SDL_IOStream and return in native format.
-
sdlReadS64Le(
Pointer< iostreamSdlIoStream> src, Pointer<Int64> value) → bool - Use this function to read 64 bits of little-endian data from an SDL_IOStream and return in native format.
-
sdlReadS8(
Pointer< iostreamSdlIoStream> src, Pointer<Int8> value) → bool - Use this function to read a signed byte from an SDL_IOStream.
-
sdlReadU16Be(
Pointer< iostreamSdlIoStream> src, Pointer<Uint16> value) → bool - Use this function to read 16 bits of big-endian data from an SDL_IOStream and return in native format.
-
sdlReadU16Le(
Pointer< iostreamSdlIoStream> src, Pointer<Uint16> value) → bool - Use this function to read 16 bits of little-endian data from an SDL_IOStream and return in native format.
-
sdlReadU32Be(
Pointer< iostreamSdlIoStream> src, Pointer<Uint32> value) → bool - Use this function to read 32 bits of big-endian data from an SDL_IOStream and return in native format.
-
sdlReadU32Le(
Pointer< iostreamSdlIoStream> src, Pointer<Uint32> value) → bool - Use this function to read 32 bits of little-endian data from an SDL_IOStream and return in native format.
-
sdlReadU64Be(
Pointer< iostreamSdlIoStream> src, Pointer<Uint64> value) → bool - Use this function to read 64 bits of big-endian data from an SDL_IOStream and return in native format.
-
sdlReadU64Le(
Pointer< iostreamSdlIoStream> src, Pointer<Uint64> value) → bool - Use this function to read 64 bits of little-endian data from an SDL_IOStream and return in native format.
-
sdlReadU8(
Pointer< iostreamSdlIoStream> src, Pointer<Uint8> value) → bool - Use this function to read a byte from an SDL_IOStream.
-
sdlSaveFile(
String? file, Pointer< iostreamNativeType> data, int datasize) → bool - Save all the data into a file path.
-
sdlSaveFileIo(
Pointer< iostreamSdlIoStream> src, Pointer<NativeType> data, int datasize, bool closeio) → bool - Save all the data into an SDL data stream.
-
sdlSeekIo(
Pointer< iostreamSdlIoStream> context, int offset, int whence) → int - Seek within an SDL_IOStream data stream.
-
sdlTellIo(
Pointer< iostreamSdlIoStream> context) → int - Determine the current read/write offset in an SDL_IOStream data stream.
-
sdlWriteIo(
Pointer< iostreamSdlIoStream> context, Pointer<NativeType> ptr, int size) → int - Write to an SDL_IOStream data stream.
-
sdlWriteS16Be(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 16 bits in native format to an SDL_IOStream as big-endian data.
-
sdlWriteS16Le(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 16 bits in native format to an SDL_IOStream as little-endian data.
-
sdlWriteS32Be(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 32 bits in native format to an SDL_IOStream as big-endian data.
-
sdlWriteS32Le(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 32 bits in native format to an SDL_IOStream as little-endian data.
-
sdlWriteS64Be(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 64 bits in native format to an SDL_IOStream as big-endian data.
-
sdlWriteS64Le(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 64 bits in native format to an SDL_IOStream as little-endian data.
-
sdlWriteS8(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write a signed byte to an SDL_IOStream.
-
sdlWriteU16Be(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 16 bits in native format to an SDL_IOStream as big-endian data.
-
sdlWriteU16Le(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 16 bits in native format to an SDL_IOStream as little-endian data.
-
sdlWriteU32Be(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 32 bits in native format to an SDL_IOStream as big-endian data.
-
sdlWriteU32Le(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 32 bits in native format to an SDL_IOStream as little-endian data.
-
sdlWriteU64Be(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 64 bits in native format to an SDL_IOStream as big-endian data.
-
sdlWriteU64Le(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write 64 bits in native format to an SDL_IOStream as little-endian data.
-
sdlWriteU8(
Pointer< iostreamSdlIoStream> dst, int value) → bool - Use this function to write a byte to an SDL_IOStream.