ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qioapi.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <QIODevice>
#include "ioapi.h"
#include "quazip_global.h"
#include "zlib.h"
Include dependency graph for qioapi.cpp:

Go to the source code of this file.

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)
 

Macro Definition Documentation

◆ SEEK_CUR

#define SEEK_CUR   1

Definition at line 30 of file qioapi.cpp.

◆ SEEK_END

#define SEEK_END   2

Definition at line 34 of file qioapi.cpp.

◆ SEEK_SET

#define SEEK_SET   0

Definition at line 38 of file qioapi.cpp.

Function Documentation

◆ call_zopen64()

voidpf call_zopen64 ( const zlib_filefunc64_32_def pfilefunc,
voidpf  file,
int  mode 
)

◆ call_zseek64()

int call_zseek64 ( const zlib_filefunc64_32_def pfilefunc,
voidpf  filestream,
ZPOS64_T  offset,
int  origin 
)

◆ call_ztell64()

◆ fill_qiodevice64_filefunc()

◆ fill_qiodevice_filefunc()

◆ fill_zlib_filefunc64_32_def_from_filefunc32()

◆ qiodevice64_seek_file_func()

int qiodevice64_seek_file_func ( voidpf  ,
voidpf  stream,
ZPOS64_T  offset,
int  origin 
)

◆ qiodevice64_tell_file_func()

ZPOS64_T qiodevice64_tell_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 189 of file qioapi.cpp.

Referenced by fill_qiodevice64_filefunc().

◆ qiodevice_close_file_func()

int qiodevice_close_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 267 of file qioapi.cpp.

References NULL.

Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().

◆ qiodevice_error_file_func()

int qiodevice_error_file_func ( voidpf  ,
voidpf   
)

Definition at line 290 of file qioapi.cpp.

Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().

◆ qiodevice_fakeclose_file_func()

int qiodevice_fakeclose_file_func ( voidpf  opaque,
voidpf   
)

Definition at line 284 of file qioapi.cpp.

Referenced by fill_qiodevice64_filefunc().

◆ qiodevice_open_file_func()

voidpf qiodevice_open_file_func ( voidpf  opaque,
voidpf  file,
int  mode 
)

◆ qiodevice_read_file_func()

uLong qiodevice_read_file_func ( voidpf  opaque,
voidpf  stream,
void *  buf,
uLong  size 
)

Definition at line 145 of file qioapi.cpp.

References size.

Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().

◆ qiodevice_seek_file_func()

int qiodevice_seek_file_func ( voidpf  ,
voidpf  stream,
uLong  offset,
int  origin 
)

◆ qiodevice_tell_file_func()

uLong qiodevice_tell_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 175 of file qioapi.cpp.

Referenced by fill_qiodevice_filefunc().

◆ qiodevice_write_file_func()

uLong qiodevice_write_file_func ( voidpf  opaque,
voidpf  stream,
const void *  buf,
uLong  size 
)

Definition at line 160 of file qioapi.cpp.

References size.

Referenced by fill_qiodevice64_filefunc(), and fill_qiodevice_filefunc().