|
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 *filename, int mode) |
| static uLong ZCALLBACK | fread_file_func (voidpf opaque, voidpf stream, void *buf, uLong size) |
| static uLong ZCALLBACK | fwrite_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size) |
| static long ZCALLBACK | ftell_file_func (voidpf opaque, voidpf stream) |
| static long ZCALLBACK | fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin) |
| static int ZCALLBACK | fclose_file_func (voidpf opaque, voidpf stream) |
| static int ZCALLBACK | ferror_file_func (voidpf opaque, voidpf stream) |
| 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().
| 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(), 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 OF(), and unzOpen2().
Definition at line 33 of file ioapi.cpp.
References FILE, 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().
Definition at line 66 of file ioapi.cpp.
References FILE, 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().