Close and free any allocated resources.
If the stream is buffering, make sure the data is written out.
Read up to size bytes from the data stream to the area pointed at by ptr.
Seek to offset relative to whence, one of stdio's whence values: SDL_IO_SEEK_SET, SDL_IO_SEEK_CUR, SDL_IO_SEEK_END
Return the number of bytes in this SDL_IOStream
Write exactly size bytes from the area pointed at by ptr to data stream.
The function pointers that drive an SDL_IOStream.
Applications can provide this struct to SDL_OpenIO() to create their own implementation of SDL_IOStream. This is not necessarily required, as SDL already offers several common types of I/O streams, via functions like SDL_IOFromFile() and SDL_IOFromMem().
This structure should be initialized using SDL_INIT_INTERFACE()