A function with same signature and semantics than feof. From Linux man: "The function feof() tests the end-of-file indicator for the stream pointed to by stream, returning nonzero if it is set."
Can be a FILE* handle, a FIMEMORY, a WrappedIO... identifies the I/O stream.
A function with same signature and semantics than fread.
A function with same signature and semantics than fseek. Origin: position from which offset is added SEEK_SET = beginning of file. SEEK_CUR = Current position of file pointer. SEEK_END = end of file. This function returns zero if successful, or else it returns a non-zero value. Note: c_long offsets in gamut can always be cast to int without loss.
A function with same signature and semantics than ftell. Tells where we are in the file. -1 if error. Note: c_long offsets in gamut can always be cast to int without loss.
A function with same signature and semantics than fwrite.
I/O abstraction, to support load/write from a file, from memory, or from user-provided callbacks.
This is basically an owned buffer, with capacity, optionally borrowed. The original things being that it can both be used for reading and writing.
Can't open file larger than this much bytes
Can't read more bytes than this at once
Can't write more bytes than this at once
I/O streams.