ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "ioapi.h"
#include "quazip_global.h"
#include <QIODevice>
Go to the source code of this file.
Data Structures | |
struct | QIODevice_descriptor |
Macros | |
#define | SEEK_CUR 1 |
#define | SEEK_END 2 |
#define | SEEK_SET 0 |
Functions | |
voidpf | call_zopen64 (const zlib_filefunc64_32_def *pfilefunc, voidpf file, int mode) |
int | 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) |
voidpf | qiodevice_open_file_func (voidpf opaque, voidpf file, int mode) |
uLong | qiodevice_read_file_func (voidpf opaque, voidpf stream, void *buf, uLong size) |
uLong | qiodevice_write_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size) |
uLong | qiodevice_tell_file_func (voidpf opaque, voidpf stream) |
ZPOS64_T | qiodevice64_tell_file_func (voidpf opaque, voidpf stream) |
int | qiodevice_seek_file_func (voidpf, voidpf stream, uLong offset, int origin) |
int | qiodevice64_seek_file_func (voidpf, voidpf stream, ZPOS64_T offset, int origin) |
int | qiodevice_close_file_func (voidpf opaque, voidpf stream) |
int | qiodevice_fakeclose_file_func (voidpf opaque, voidpf) |
int | qiodevice_error_file_func (voidpf, voidpf) |
void | fill_qiodevice_filefunc (zlib_filefunc_def *pzlib_filefunc_def) |
void | fill_qiodevice64_filefunc (zlib_filefunc64_def *pzlib_filefunc_def) |
void | fill_zlib_filefunc64_32_def_from_filefunc32 (zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32) |
#define SEEK_CUR 1 |
Definition at line 29 of file qioapi.cpp.
#define SEEK_END 2 |
Definition at line 33 of file qioapi.cpp.
#define SEEK_SET 0 |
Definition at line 37 of file qioapi.cpp.
Referenced by unzOpenCurrentFile3().
voidpf call_zopen64 | ( | const zlib_filefunc64_32_def * | pfilefunc, |
voidpf | file, | ||
int | mode | ||
) |
Definition at line 40 of file qioapi.cpp.
References zlib_filefunc64_def_s::opaque, zlib_filefunc64_32_def_s::zfile_func64, zlib_filefunc64_32_def_s::zopen32_file, and zlib_filefunc64_def_s::zopen64_file.
int call_zseek64 | ( | const zlib_filefunc64_32_def * | pfilefunc, |
voidpf | filestream, | ||
ZPOS64_T | offset, | ||
int | origin | ||
) |
Definition at line 50 of file qioapi.cpp.
References zlib_filefunc64_def_s::opaque, zlib_filefunc64_32_def_s::zfile_func64, zlib_filefunc64_32_def_s::zseek32_file, and zlib_filefunc64_def_s::zseek64_file.
ZPOS64_T call_ztell64 | ( | const zlib_filefunc64_32_def * | pfilefunc, |
voidpf | filestream | ||
) |
Definition at line 64 of file qioapi.cpp.
References zlib_filefunc64_def_s::opaque, zlib_filefunc64_32_def_s::zfile_func64, zlib_filefunc64_def_s::zseek64_file, zlib_filefunc64_32_def_s::ztell32_file, and zlib_filefunc64_def_s::ztell64_file.
void fill_qiodevice64_filefunc | ( | zlib_filefunc64_def * | pzlib_filefunc_def | ) |
Definition at line 331 of file qioapi.cpp.
References zlib_filefunc64_def_s::opaque, qiodevice64_seek_file_func(), qiodevice64_tell_file_func(), qiodevice_close_file_func(), qiodevice_error_file_func(), qiodevice_fakeclose_file_func(), qiodevice_open_file_func(), qiodevice_read_file_func(), qiodevice_write_file_func(), zlib_filefunc64_def_s::zclose_file, zlib_filefunc64_def_s::zerror_file, zlib_filefunc64_def_s::zfakeclose_file, zlib_filefunc64_def_s::zopen64_file, zlib_filefunc64_def_s::zread_file, zlib_filefunc64_def_s::zseek64_file, zlib_filefunc64_def_s::ztell64_file, and zlib_filefunc64_def_s::zwrite_file.
Referenced by unzOpenInternal(), and zipOpen3().
void fill_qiodevice_filefunc | ( | zlib_filefunc_def * | pzlib_filefunc_def | ) |
Definition at line 318 of file qioapi.cpp.
References zlib_filefunc_def_s::opaque, qiodevice_close_file_func(), qiodevice_error_file_func(), qiodevice_open_file_func(), qiodevice_read_file_func(), qiodevice_seek_file_func(), qiodevice_tell_file_func(), qiodevice_write_file_func(), zlib_filefunc_def_s::zclose_file, zlib_filefunc_def_s::zerror_file, zlib_filefunc_def_s::zopen_file, zlib_filefunc_def_s::zread_file, zlib_filefunc_def_s::zseek_file, zlib_filefunc_def_s::ztell_file, and zlib_filefunc_def_s::zwrite_file.
void fill_zlib_filefunc64_32_def_from_filefunc32 | ( | zlib_filefunc64_32_def * | p_filefunc64_32, |
const zlib_filefunc_def * | p_filefunc32 | ||
) |
Definition at line 346 of file qioapi.cpp.
References zlib_filefunc_def_s::opaque, zlib_filefunc64_def_s::opaque, zlib_filefunc_def_s::zclose_file, zlib_filefunc64_def_s::zclose_file, zlib_filefunc_def_s::zerror_file, zlib_filefunc64_def_s::zerror_file, zlib_filefunc64_def_s::zfakeclose_file, zlib_filefunc64_32_def_s::zfile_func64, zlib_filefunc64_32_def_s::zopen32_file, zlib_filefunc64_def_s::zopen64_file, zlib_filefunc_def_s::zopen_file, zlib_filefunc_def_s::zread_file, zlib_filefunc64_def_s::zread_file, zlib_filefunc64_32_def_s::zseek32_file, zlib_filefunc64_def_s::zseek64_file, zlib_filefunc_def_s::zseek_file, zlib_filefunc64_32_def_s::ztell32_file, zlib_filefunc64_def_s::ztell64_file, zlib_filefunc_def_s::ztell_file, zlib_filefunc_def_s::zwrite_file, and zlib_filefunc64_def_s::zwrite_file.
Referenced by unzOpen2(), and zipOpen2().
int qiodevice64_seek_file_func | ( | voidpf | , |
voidpf | stream, | ||
ZPOS64_T | offset, | ||
int | origin | ||
) |
Definition at line 244 of file qioapi.cpp.
References ZLIB_FILEFUNC_SEEK_CUR, ZLIB_FILEFUNC_SEEK_END, and ZLIB_FILEFUNC_SEEK_SET.
Referenced by fill_qiodevice64_filefunc().
ZPOS64_T qiodevice64_tell_file_func | ( | voidpf | opaque, |
voidpf | stream | ||
) |
Definition at line 192 of file qioapi.cpp.
References QIODevice_descriptor::pos.
Referenced by fill_qiodevice64_filefunc().
int qiodevice_close_file_func | ( | voidpf | opaque, |
voidpf | stream | ||
) |
Definition at line 281 of file qioapi.cpp.
Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().
int qiodevice_error_file_func | ( | voidpf | , |
voidpf | |||
) |
Definition at line 310 of file qioapi.cpp.
Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().
int qiodevice_fakeclose_file_func | ( | voidpf | opaque, |
voidpf | |||
) |
Definition at line 301 of file qioapi.cpp.
Referenced by fill_qiodevice64_filefunc().
voidpf qiodevice_open_file_func | ( | voidpf | opaque, |
voidpf | file, | ||
int | mode | ||
) |
Definition at line 86 of file qioapi.cpp.
References QIODevice_descriptor::pos, ZLIB_FILEFUNC_MODE_CREATE, ZLIB_FILEFUNC_MODE_EXISTING, ZLIB_FILEFUNC_MODE_READ, and ZLIB_FILEFUNC_MODE_READWRITEFILTER.
Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().
uLong qiodevice_read_file_func | ( | voidpf | opaque, |
voidpf | stream, | ||
void * | buf, | ||
uLong | size | ||
) |
Definition at line 140 of file qioapi.cpp.
References QIODevice_descriptor::pos.
Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().
int qiodevice_seek_file_func | ( | voidpf | , |
voidpf | stream, | ||
uLong | offset, | ||
int | origin | ||
) |
Definition at line 207 of file qioapi.cpp.
References ZLIB_FILEFUNC_SEEK_CUR, ZLIB_FILEFUNC_SEEK_END, and ZLIB_FILEFUNC_SEEK_SET.
Referenced by fill_qiodevice_filefunc().
uLong qiodevice_tell_file_func | ( | voidpf | opaque, |
voidpf | stream | ||
) |
Definition at line 175 of file qioapi.cpp.
References QIODevice_descriptor::pos.
Referenced by fill_qiodevice_filefunc().
uLong qiodevice_write_file_func | ( | voidpf | opaque, |
voidpf | stream, | ||
const void * | buf, | ||
uLong | size | ||
) |
Definition at line 158 of file qioapi.cpp.
References QIODevice_descriptor::pos.
Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().