45 #ifndef AI_FILEIO_H_INC 46 #define AI_FILEIO_H_INC 56 typedef size_t (*aiFileWriteProc) (C_STRUCT
aiFile*,
const char*, size_t, size_t);
57 typedef size_t (*aiFileReadProc) (C_STRUCT aiFile*,
char*, size_t,size_t);
58 typedef size_t (*aiFileTellProc) (C_STRUCT aiFile*);
59 typedef void (*aiFileFlushProc) (C_STRUCT aiFile*);
60 typedef aiReturn (*aiFileSeek)(C_STRUCT aiFile*, size_t, aiOrigin);
63 typedef aiFile* (*aiFileOpenProc) (C_STRUCT
aiFileIO*,
const char*,
const char*);
64 typedef void (*aiFileCloseProc) (C_STRUCT aiFileIO*, C_STRUCT aiFile*);
67 typedef char* aiUserData;
135 #endif // AI_FILEIO_H_INC Basic data types and primitives, such as vectors or colors.
aiFileFlushProc FlushProc
Callback to flush the file contents.
Definition: cfileio.h:125
C-API: File system callbacks.
Definition: cfileio.h:76
aiFileSeek SeekProc
Callback to set the current position of the file cursor (fseek())
Definition: cfileio.h:121
C-API: File callbacks.
Definition: cfileio.h:100
aiFileTellProc TellProc
Callback to retrieve the current position of the file cursor (ftell())
Definition: cfileio.h:111
aiFileOpenProc OpenProc
Function used to open a new file.
Definition: cfileio.h:80
aiFileTellProc FileSizeProc
Callback to retrieve the size of the file, in bytes.
Definition: cfileio.h:116
aiUserData UserData
User-defined, opaque data.
Definition: cfileio.h:129
aiFileReadProc ReadProc
Callback to read from a file.
Definition: cfileio.h:103
aiFileCloseProc CloseProc
Function used to close an existing file.
Definition: cfileio.h:84
aiFileWriteProc WriteProc
Callback to write to a file.
Definition: cfileio.h:106
aiUserData UserData
User-defined, opaque data.
Definition: cfileio.h:87