RwOpenStream(RwStreamType type,
RwStreamAccessType access,
void *data);
Description
Opens a RenderWare stream.
Arguments
type The type of stream to be opened.
access The type of access to be performed on the stream.
data Type dependent data.
Return Value
Pointer to a RwStream structure on success. NULL otherwise.
Comments
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.
See Also