#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "ioapi.h"
Go to the source code of this file.
|
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) |
|
◆ SEEK_CUR
◆ SEEK_END
◆ SEEK_SET
◆ fclose_file_func()
◆ ferror_file_func()
◆ fill_fopen_filefunc()
Definition at line 166 of file ioapi.c.
176 pzlib_filefunc_def->
opaque = NULL;
seek_file_func zseek_file
read_file_func zread_file
long ZCALLBACK ftell_file_func(voidpf opaque, voidpf stream)
uLong ZCALLBACK fread_file_func(voidpf opaque, voidpf stream, void *buf, uLong size)
tell_file_func ztell_file
close_file_func zclose_file
voidpf ZCALLBACK fopen_file_func(voidpf opaque, const char *filename, int mode)
testerror_file_func zerror_file
int ZCALLBACK fclose_file_func(voidpf opaque, voidpf stream)
long ZCALLBACK fseek_file_func(voidpf opaque, voidpf stream, uLong offset, int origin)
open_file_func zopen_file
int ZCALLBACK ferror_file_func(voidpf opaque, voidpf stream)
uLong ZCALLBACK fwrite_file_func(voidpf opaque, voidpf stream, const void *buf, uLong size)
write_file_func zwrite_file
◆ fopen_file_func()
Definition at line 68 of file ioapi.c.
74 const char* mode_fopen = NULL;
84 if ((
filename!=NULL) && (mode_fopen != NULL))
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER
#define ZLIB_FILEFUNC_MODE_CREATE
#define ZLIB_FILEFUNC_MODE_EXISTING
#define ZLIB_FILEFUNC_MODE_READ
◆ fread_file_func()
Definition at line 90 of file ioapi.c.
typedef uLong(ZCALLBACK *read_file_func) OF((voidpf opaque
◆ fseek_file_func()
Definition at line 122 of file ioapi.c.
#define ZLIB_FILEFUNC_SEEK_SET
#define ZLIB_FILEFUNC_SEEK_END
#define ZLIB_FILEFUNC_SEEK_CUR
◆ ftell_file_func()
◆ fwrite_file_func()
Definition at line 102 of file ioapi.c.
typedef uLong(ZCALLBACK *read_file_func) OF((voidpf opaque
◆ OF() [1/5]
◆ OF() [2/5]
◆ OF() [3/5]
◆ OF() [4/5]
◆ OF() [5/5]