17#ifndef KUNZIP_FILEFUNC_H
18#define KUNZIP_FILEFUNC_H
The stdio I/O callbacks the game hands to minizip's unzip API.
void * voidpf
minizip's opaque pointer type.
Definition ioapi.h:19
unsigned long uLong
minizip's wide unsigned integer type (zlib's uLong).
Definition ioapi.h:22
int KUnzip_ferror_mem_func(voidpf opaque, voidpf stream)
Reports the error state of the memory-backed archive.
Definition kunzip_filefunc.mm:134
uLong KUnzip_fread_filehandle_func(voidpf opaque, voidpf stream, void *buf, uLong size)
Reads size bytes from the file-handle-backed archive into buf.
Definition kunzip_filefunc.mm:22
uLong KUnzip_fwrite_mem_func(voidpf opaque, voidpf stream, const void *buf, uLong size)
Write stub for the memory-backed archive; always fails.
Definition kunzip_filefunc.mm:102
long KUnzip_ftell_mem_func(voidpf opaque, voidpf stream)
Reports the memory-backed archive's current position, relative to the range start.
Definition kunzip_filefunc.mm:106
voidpf KUnzip_fopen_filehandle_func(voidpf opaque, const char *filename, int mode)
Opens the file-handle-backed archive for reading.
Definition kunzip_filefunc.mm:12
uLong KUnzip_fwrite_filehandle_func(voidpf opaque, voidpf stream, const void *buf, uLong size)
Write stub for the file-handle-backed archive; always fails.
Definition kunzip_filefunc.mm:40
int KUnzip_fclose_filehandle_func(voidpf opaque, voidpf stream)
Closes the file-handle-backed archive.
Definition kunzip_filefunc.mm:69
long KUnzip_fseek_filehandle_func(voidpf opaque, voidpf stream, uLong offset, int origin)
Seeks the file-handle-backed archive.
Definition kunzip_filefunc.mm:49
long KUnzip_fseek_mem_func(voidpf opaque, voidpf stream, uLong offset, int origin)
Seeks the memory-backed archive.
Definition kunzip_filefunc.mm:111
int KUnzip_ferror_filehandle_func(voidpf opaque, voidpf stream)
Reports the error state of the file-handle-backed archive.
Definition kunzip_filefunc.mm:75
uLong KUnzip_fread_mem_func(voidpf opaque, voidpf stream, void *buf, uLong size)
Reads size bytes from the memory-backed archive into buf.
Definition kunzip_filefunc.mm:87
int KUnzip_fclose_mem_func(voidpf opaque, voidpf stream)
Closes the memory-backed archive.
Definition kunzip_filefunc.mm:130
voidpf KUnzip_fopen_mem_func(voidpf opaque, const char *filename, int mode)
Opens the memory-backed archive by rewinding the cursor.
Definition kunzip_filefunc.mm:79
long KUnzip_ftell_filehandle_func(voidpf opaque, voidpf stream)
Reports the file-handle-backed archive's current position.
Definition kunzip_filefunc.mm:44