Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RwFileFunctions Struct Reference
[Memory & File Interfaces]


Data Fields

rwFnFexist  rwfexist
rwFnFopen  rwfopen
rwFnFclose  rwfclose
rwFnFread  rwfread
rwFnFwrite  rwfwrite
rwFnFgets  rwfgets
rwFnFputs  rwfputs
rwFnFeof  rwfeof
rwFnFseek  rwfseek
rwFnFflush  rwfflush
rwFnFtell  rwftell

Detailed Description

This type is used to specify the file access functions used by RenderWare. The default file system uses the standard ANSI functions. The application may install an alternative file system providing it complies with the ANSI interface -- see API function RwOsGetFileInterface.

The function types associated with this type are defined as follows

   RwBool (*rwFnFexist)(const RwChar *name)
       void *(*rwFnFopen)(const RwChar *name, const RwChar *access) 
       int (*rwFnFclose)(void *fptr)
       size_t (*rwFnFread)(void *addr, size_t size, size_t count, void *fptr)                        
       size_t (*rwFnFwrite)(const void *addr, size_t size, size_t count,
                 void *fptr)
   RwChar *(*rwFnFgets)(RwChar *buffer, int maxLen, void *fptr)
       int (*rwFnFputs)(const RwChar *buffer, void *fptr)
       int (*rwFnFeof)(void *fptr)
       int (*rwFnFseek)(void *fptr, long offset, int origin)
       int (*rwFnFflush)(void *fptr)
       int (*rwFnFtell)(void *fptr)
 
Note the function argument lists are consistent with the ANSI standard file access interface:

Field Documentation

rwFnFclose rwfclose
 

Pointer to fclose function

rwFnFeof rwfeof
 

Pointer to feof function

rwFnFexist rwfexist
 

Pointer to fexist function

rwFnFflush rwfflush
 

Pointer to fflush function

rwFnFgets rwfgets
 

Pointer to fgets function

rwFnFopen rwfopen
 

Pointer to fopen function

rwFnFputs rwfputs
 

Pointer to puts function

rwFnFread rwfread
 

Pointer to fread function

rwFnFseek rwfseek
 

Pointer to fseek function

rwFnFtell rwftell
 

Pointer to ftell function

rwFnFwrite rwfwrite
 

Pointer to fwrite function


Criterion Software © 1993-2003 Criterion Software Limited. All rights reserved. Built Tue Apr 22 12:46:10 2003. Send Feedback
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)