Opens a RenderWare stream.
type The type of stream to be opened.
access The type of access to be performed on the stream.
data Type dependent data.
Pointer to a RwStream structure on success. NULL otherwise.
Stream types currently supported are
rwSTREAMFILE The stream is a file which has been set up by the user. data should be the file handle (FILE *). Access should have been correctly set up by the user for this sort of access.
rwSTREAMFILENAME The stream is a file which is being specified by the filename. data should point to a zero terminated string (char *).
rwSTREAMMEMORY The stream is a chunk of memory. If the access type is rwSTREAMAPPEND then the chunk of memory MUST be created using malloc as RenderWare may subsequently try to use realloc to gain more memory.
Access types currently supported are
rwSTREAMREAD The stream is for read access only.
rwSTREAMWRITE The stream is for write access only (it is being created).
rwSTREAMAPPEND The stream is for write access only and is being appended to.