12#define ZLIB_FILEFUNC_SEEK_CUR (1)
13#define ZLIB_FILEFUNC_SEEK_END (2)
14#define ZLIB_FILEFUNC_SEEK_SET (0)
16#define ZLIB_FILEFUNC_MODE_READ (1)
17#define ZLIB_FILEFUNC_MODE_WRITE (2)
18#define ZLIB_FILEFUNC_MODE_READWRITEFILTER (3)
20#define ZLIB_FILEFUNC_MODE_EXISTING (4)
21#define ZLIB_FILEFUNC_MODE_CREATE (8)
26#if (defined(WIN32) || defined (WINDOWS) || defined (_WINDOWS)) && defined(CALLBACK) && defined (USEWINDOWS_CALLBACK)
27#define ZCALLBACK CALLBACK
49typedef struct zlib_filefunc_def_s
65#define ZREAD(filefunc, filestream, buf, size) ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
66#define ZWRITE(filefunc, filestream, buf, size) ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))
67#define ZTELL(filefunc, filestream) ((*((filefunc).ztell_file))((filefunc).opaque,filestream))
68#define ZSEEK(filefunc, filestream, pos, mode) ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))
69#define ZCLOSE(filefunc, filestream) ((*((filefunc).zclose_file))((filefunc).opaque,filestream))
70#define ZERROR(filefunc, filestream) ((*((filefunc).zerror_file))((filefunc).opaque,filestream))
void fill_fopen_filefunc(zlib_filefunc_def *pzlib_filefunc_def)
typedef voidpf(ZCALLBACK *open_file_func) OF((voidpf opaque
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
typedef uLong(ZCALLBACK *read_file_func) OF((voidpf opaque
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
seek_file_func zseek_file
open_file_func zopen_file
write_file_func zwrite_file
testerror_file_func zerror_file
read_file_func zread_file
tell_file_func ztell_file
close_file_func zclose_file