#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zlib.h>
#include "ioapi.h"
Go to the source code of this file.
Defines | |
#define | SEEK_CUR 1 |
#define | SEEK_END 2 |
#define | SEEK_SET 0 |
Functions | |
voidpf ZCALLBACK fopen_file_func | OF ((voidpf opaque, const char *filename, int mode)) |
uLong ZCALLBACK fread_file_func | OF ((voidpf opaque, voidpf stream, void *buf, uLong size)) |
uLong ZCALLBACK fwrite_file_func | OF ((voidpf opaque, voidpf stream, const void *buf, uLong size)) |
long ZCALLBACK ftell_file_func | OF ((voidpf opaque, voidpf stream)) |
long ZCALLBACK fseek_file_func | OF ((voidpf opaque, voidpf stream, uLong offset, int origin)) |
voidpf ZCALLBACK | fopen_file_func (voidpf opaque, const char *filename, int mode) |
uLong ZCALLBACK | fread_file_func (voidpf opaque, voidpf stream, void *buf, uLong size) |
uLong ZCALLBACK | fwrite_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size) |
long ZCALLBACK | ftell_file_func (voidpf opaque, voidpf stream) |
long ZCALLBACK | fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin) |
int ZCALLBACK | fclose_file_func (voidpf opaque, voidpf stream) |
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 21 of file ioapi.c.
Referenced by f_seek(), FS_Seek(), fseek_file_func(), and sound::OggFileStream::oggSeekFunc().
#define SEEK_END 2 |
Definition at line 25 of file ioapi.c.
Referenced by f_seek(), FS_CopyFile(), FS_FileLength(), FS_Seek(), fseek_file_func(), and sound::OggFileStream::oggSeekFunc().
#define SEEK_SET 0 |
Definition at line 29 of file ioapi.c.
Referenced by f_seek(), FS_CopyFile(), FS_FileLength(), FS_Seek(), fseek_file_func(), sound::OggFileStream::oggSeekFunc(), unzOpenCurrentFile3(), and WriteBSPFile().
int ZCALLBACK fclose_file_func | ( | voidpf | opaque, | |
voidpf | stream | |||
) |
Definition at line 148 of file ioapi.c.
Referenced by fill_fopen_filefunc().
int ZCALLBACK ferror_file_func | ( | voidpf | opaque, | |
voidpf | stream | |||
) |
Definition at line 157 of file ioapi.c.
Referenced by fill_fopen_filefunc().
void fill_fopen_filefunc | ( | zlib_filefunc_def* | pzlib_filefunc_def | ) |
Definition at line 166 of file ioapi.c.
References fclose_file_func(), ferror_file_func(), fopen_file_func(), fread_file_func(), fseek_file_func(), ftell_file_func(), and fwrite_file_func().
Referenced by unzOpen2().
voidpf ZCALLBACK fopen_file_func | ( | voidpf | opaque, | |
const char* | filename, | |||
int | mode | |||
) |
Definition at line 68 of file ioapi.c.
References ZLIB_FILEFUNC_MODE_CREATE, ZLIB_FILEFUNC_MODE_EXISTING, ZLIB_FILEFUNC_MODE_READ, and ZLIB_FILEFUNC_MODE_READWRITEFILTER.
Referenced by fill_fopen_filefunc().
uLong ZCALLBACK fread_file_func | ( | voidpf | opaque, | |
voidpf | stream, | |||
void* | buf, | |||
uLong | size | |||
) |
long ZCALLBACK fseek_file_func | ( | voidpf | opaque, | |
voidpf | stream, | |||
uLong | offset, | |||
int | origin | |||
) |
Definition at line 122 of file ioapi.c.
References SEEK_CUR, SEEK_END, SEEK_SET, ZLIB_FILEFUNC_SEEK_CUR, ZLIB_FILEFUNC_SEEK_END, and ZLIB_FILEFUNC_SEEK_SET.
Referenced by fill_fopen_filefunc().
long ZCALLBACK ftell_file_func | ( | voidpf | opaque, | |
voidpf | stream | |||
) |
Definition at line 113 of file ioapi.c.
Referenced by fill_fopen_filefunc().
uLong ZCALLBACK fwrite_file_func | ( | voidpf | opaque, | |
voidpf | stream, | |||
const void* | buf, | |||
uLong | size | |||
) |
int ZCALLBACK ferror_file_func OF | ( | (voidpf opaque, voidpf stream) | ) |