Go to the source code of this file.
|
voidpf | call_zopen64 (const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode) |
|
long | call_zseek64 (const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin) |
|
ZPOS64_T | call_ztell64 (const zlib_filefunc64_32_def *pfilefunc, voidpf filestream) |
|
void | fill_zlib_filefunc64_32_def_from_filefunc32 (zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32) |
|
static voidpf ZCALLBACK fopen_file_func | OF ((voidpf opaque, const char *filename, int mode)) |
|
static uLong ZCALLBACK fread_file_func | OF ((voidpf opaque, voidpf stream, void *buf, uLong size)) |
|
static uLong ZCALLBACK fwrite_file_func | OF ((voidpf opaque, voidpf stream, const void *buf, uLong size)) |
|
static ZPOS64_T ZCALLBACK ftell64_file_func | OF ((voidpf opaque, voidpf stream)) |
|
static long ZCALLBACK fseek64_file_func | OF ((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)) |
|
static voidpf ZCALLBACK | fopen_file_func (voidpf opaque, const char *filename, int mode) |
|
static voidpf ZCALLBACK | fopen64_file_func (voidpf opaque, const void *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 ZPOS64_T ZCALLBACK | ftell64_file_func (voidpf opaque, voidpf stream) |
|
static long ZCALLBACK | fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin) |
|
static long ZCALLBACK | fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T 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) |
|
void | fill_fopen64_filefunc (zlib_filefunc64_def *pzlib_filefunc_def) |
|
◆ FOPEN_FUNC
◆ FSEEKO_FUNC
◆ FTELLO_FUNC
◆ call_zopen64()
Definition at line 31 of file ioapi.c.
32{
35 else
36 {
38 }
39}
zlib_filefunc64_def zfile_func64
open_file_func zopen32_file
open64_file_func zopen64_file
◆ call_zseek64()
Definition at line 41 of file ioapi.c.
42{
45 else
46 {
48 if (offsetTruncated !=
offset)
49 return -1;
50 else
52 }
53}
seek_file_func zseek32_file
seek64_file_func zseek64_file
◆ call_ztell64()
Definition at line 55 of file ioapi.c.
56{
59 else
60 {
62 if ((tell_uLong) ==
MAXU32)
64 else
65 return tell_uLong;
66 }
67}
unsigned long long int ZPOS64_T
tell_file_func ztell32_file
tell64_file_func ztell64_file
◆ fclose_file_func()
◆ ferror_file_func()
◆ fill_fopen64_filefunc()
Definition at line 248 of file ioapi.c.
249{
258}
static ZPOS64_T ZCALLBACK ftell64_file_func(voidpf opaque, voidpf stream)
static long ZCALLBACK fseek64_file_func(voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)
static int ZCALLBACK ferror_file_func(voidpf opaque, voidpf stream)
static uLong ZCALLBACK fwrite_file_func(voidpf opaque, voidpf stream, const void *buf, uLong size)
static voidpf ZCALLBACK fopen64_file_func(voidpf opaque, const void *filename, int mode)
static uLong ZCALLBACK fread_file_func(voidpf opaque, voidpf stream, void *buf, uLong size)
static int ZCALLBACK fclose_file_func(voidpf opaque, voidpf stream)
write_file_func zwrite_file
read_file_func zread_file
close_file_func zclose_file
testerror_file_func zerror_file
Referenced by unzOpenInternal(), and zipOpen3().
◆ fill_fopen_filefunc()
Definition at line 235 of file ioapi.c.
237{
246}
static long ZCALLBACK fseek_file_func(voidpf opaque, voidpf stream, uLong offset, int origin)
static voidpf ZCALLBACK fopen_file_func(voidpf opaque, const char *filename, int mode)
static long ZCALLBACK ftell_file_func(voidpf opaque, voidpf stream)
seek_file_func zseek_file
open_file_func zopen_file
testerror_file_func zerror_file
write_file_func zwrite_file
read_file_func zread_file
close_file_func zclose_file
tell_file_func ztell_file
◆ fill_zlib_filefunc64_32_def_from_filefunc32()
◆ fopen64_file_func()
Definition at line 115 of file ioapi.c.
116{
118 const char* mode_fopen =
NULL;
121 mode_fopen = "rb";
122 else
124 mode_fopen = "r+b";
125 else
127 mode_fopen = "wb";
128
132}
#define FOPEN_FUNC(filename, mode)
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER
#define ZLIB_FILEFUNC_MODE_EXISTING
#define ZLIB_FILEFUNC_MODE_CREATE
#define ZLIB_FILEFUNC_MODE_READ
Referenced by fill_fopen64_filefunc().
◆ fopen_file_func()
Definition at line 96 of file ioapi.c.
97{
99 const char* mode_fopen =
NULL;
102 mode_fopen = "rb";
103 else
105 mode_fopen = "r+b";
106 else
108 mode_fopen = "wb";
109
113}
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
Referenced by fill_fopen_filefunc().
◆ fread_file_func()
Definition at line 135 of file ioapi.c.
136{
141}
GLenum GLuint GLenum GLsizei const GLchar * buf
_Check_return_opt_ _CRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
Referenced by fill_fopen64_filefunc(), and fill_fopen_filefunc().
◆ fseek64_file_func()
Definition at line 192 of file ioapi.c.
193{
194 int fseek_origin=0;
198 {
201 break;
204 break;
207 break;
208 default: return -1;
209 }
211
214
216}
#define FSEEKO_FUNC(stream, offset, origin)
#define ZLIB_FILEFUNC_SEEK_CUR
#define ZLIB_FILEFUNC_SEEK_SET
#define ZLIB_FILEFUNC_SEEK_END
Referenced by fill_fopen64_filefunc().
◆ fseek_file_func()
Definition at line 168 of file ioapi.c.
169{
170 int fseek_origin=0;
174 {
177 break;
180 break;
183 break;
184 default: return -1;
185 }
190}
_Check_return_opt_ _CRTIMP int __cdecl fseek(_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
Referenced by fill_fopen_filefunc().
◆ ftell64_file_func()
◆ ftell_file_func()
◆ fwrite_file_func()
Definition at line 143 of file ioapi.c.
144{
149}
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
Referenced by fill_fopen64_filefunc(), and fill_fopen_filefunc().
◆ OF() [1/5]
◆ OF() [2/5]
◆ OF() [3/5]
◆ OF() [4/5]
◆ OF() [5/5]