Helper to read one ubyte in stream. On error, sets err to true and return 0.
Helper to read one little-endian uint in stream. On error, sets err to true and return 0.
Helper to read one little-endian ushort in stream. On error, sets err to true and return 0.
Seek to beginning of the I/O stream.
Seek to asolute position in the I/O stream. Useful because some function need to preserve it.
Setup the IOStream for reading a file. The passed IOHandle will need to be a FILE*. For internal Gamut usage.
Setup the IOStream for using a a file. The passed IOHandle will need to be a MemoryFile*. For internal Gamut usage.
Setup the IOStream for wrapping another IOStream and logging what happens. The passed IOHandle will need to be a WrappedIO. For internal Gamut usage.
Skip bytes.
A function with semantics and signature similar to feof.
A function with semantics and signature similar to fread.
A function with semantics and signature similar to fseek.
A function with semantics and signature similar to ftell.
A function with semantics and signature similar to fwrite.
I/O abstraction, to support load/write from a file, from memory, or from user-provided callbacks.