|
UFO: Alien Invasion
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <zlib.h>#include "ioapi.h"#include "../ports/system.h"
Go to the source code of this file.
Macros | |
| #define | SEEK_CUR 1 |
| #define | SEEK_END 2 |
| #define | SEEK_SET 0 |
Functions | |
| static voidpf ZCALLBACK | fopen_file_func (voidpf opaque, const char *filenamefilename, int modemode) |
| static uLong ZCALLBACK | fread_file_func (voidpf opaque, voidpf streamstream, void *bufbuf, uLong sizesize) |
| static uLong ZCALLBACK | fwrite_file_func (voidpf opaque, voidpf streamstream, const void *bufbuf, uLong sizesize) |
| static long ZCALLBACK | ftell_file_func (voidpf opaque, voidpf streamstream) |
| static long ZCALLBACK | fseek_file_func (voidpf opaque, voidpf streamstream, uLong offsetoffset, int originorigin) |
| static int ZCALLBACK | fclose_file_func (voidpf opaque, voidpf streamstream) |
| static int ZCALLBACK | ferror_file_func (voidpf opaque, voidpf streamstream) |
| void | fill_fopen_filefunc (zlib_filefunc_def *pzlib_filefunc_def) |
| #define SEEK_CUR 1 |
Definition at line 22 of file ioapi.cpp.
Referenced by FS_Seek(), and fseek_file_func().
| #define SEEK_END 2 |
Definition at line 26 of file ioapi.cpp.
Referenced by FS_CopyFile(), FS_FileLength(), FS_Seek(), and fseek_file_func().
| #define SEEK_SET 0 |
Definition at line 30 of file ioapi.cpp.
Referenced by FS_CopyFile(), FS_FileLength(), FS_Seek(), fseek_file_func(), unzOpenCurrentFile3(), and WriteBSPFile().
Definition at line 85 of file ioapi.cpp.
References fclose_file_func(), FILE, voidpf(), and ZCALLBACK.
Referenced by fclose_file_func(), and fill_fopen_filefunc().
Definition at line 90 of file ioapi.cpp.
References ferror_file_func(), FILE, voidpf(), and ZCALLBACK.
Referenced by ferror_file_func(), and fill_fopen_filefunc().
| void fill_fopen_filefunc | ( | zlib_filefunc_def * | pzlib_filefunc_def | ) |
Definition at line 95 of file ioapi.cpp.
References fclose_file_func(), ferror_file_func(), fill_fopen_filefunc(), fopen_file_func(), fread_file_func(), fseek_file_func(), ftell_file_func(), fwrite_file_func(), zlib_filefunc_def::opaque, zlib_filefunc_def::zclose_file, zlib_filefunc_def::zerror_file, zlib_filefunc_def::zopen_file, zlib_filefunc_def::zread_file, zlib_filefunc_def::zseek_file, zlib_filefunc_def::ztell_file, and zlib_filefunc_def::zwrite_file.
Referenced by fill_fopen_filefunc(), OF(), and unzOpen2().
Definition at line 33 of file ioapi.cpp.
References FILE, fopen_file_func(), Sys_Fopen(), voidpf(), ZCALLBACK, ZLIB_FILEFUNC_MODE_CREATE, ZLIB_FILEFUNC_MODE_EXISTING, ZLIB_FILEFUNC_MODE_READ, and ZLIB_FILEFUNC_MODE_READWRITEFILTER.
Referenced by fill_fopen_filefunc(), and fopen_file_func().
Definition at line 51 of file ioapi.cpp.
References FILE, fread_file_func(), uLong(), voidpf(), and ZCALLBACK.
Referenced by fill_fopen_filefunc(), and fread_file_func().
Definition at line 66 of file ioapi.cpp.
References FILE, fseek_file_func(), SEEK_CUR, SEEK_END, SEEK_SET, uLong(), voidpf(), ZCALLBACK, ZLIB_FILEFUNC_SEEK_CUR, ZLIB_FILEFUNC_SEEK_END, and ZLIB_FILEFUNC_SEEK_SET.
Referenced by fill_fopen_filefunc(), and fseek_file_func().
Definition at line 61 of file ioapi.cpp.
References FILE, ftell_file_func(), voidpf(), and ZCALLBACK.
Referenced by fill_fopen_filefunc(), and ftell_file_func().
|
static |
Definition at line 56 of file ioapi.cpp.
References FILE, fwrite_file_func(), uLong(), voidpf(), and ZCALLBACK.
Referenced by fill_fopen_filefunc(), and fwrite_file_func().