tesseract  4.00.00dev
ioapi.h File Reference

Go to the source code of this file.

Classes

struct  zlib_filefunc_def_s
 

Macros

#define ZLIB_FILEFUNC_SEEK_CUR   (1)
 
#define ZLIB_FILEFUNC_SEEK_END   (2)
 
#define ZLIB_FILEFUNC_SEEK_SET   (0)
 
#define ZLIB_FILEFUNC_MODE_READ   (1)
 
#define ZLIB_FILEFUNC_MODE_WRITE   (2)
 
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)
 
#define ZLIB_FILEFUNC_MODE_EXISTING   (4)
 
#define ZLIB_FILEFUNC_MODE_CREATE   (8)
 
#define ZCALLBACK
 
#define ZREAD(filefunc, filestream, buf, size)   ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))
 
#define ZWRITE(filefunc, filestream, buf, size)   ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))
 
#define ZTELL(filefunc, filestream)   ((*((filefunc).ztell_file))((filefunc).opaque,filestream))
 
#define ZSEEK(filefunc, filestream, pos, mode)   ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))
 
#define ZCLOSE(filefunc, filestream)   ((*((filefunc).zclose_file))((filefunc).opaque,filestream))
 
#define ZERROR(filefunc, filestream)   ((*((filefunc).zerror_file))((filefunc).opaque,filestream))
 

Typedefs

typedef const char * filename
 
typedef const char int mode
 
typedef voidpf stream
 
typedef voidpf void * buf
 
typedef voidpf void uLong size
 
typedef voidpf uLong offset
 
typedef voidpf uLong int origin
 
typedef struct zlib_filefunc_def_s zlib_filefunc_def
 

Functions

typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque
 
typedef uLong (ZCALLBACK *read_file_func) OF((voidpf opaque
 
typedef long (ZCALLBACK *tell_file_func) OF((voidpf opaque
 
typedef int (ZCALLBACK *close_file_func) OF((voidpf opaque
 
void fill_fopen_filefunc OF ((zlib_filefunc_def *pzlib_filefunc_def))
 

Macro Definition Documentation

◆ ZCALLBACK

#define ZCALLBACK

Definition at line 30 of file ioapi.h.

◆ ZCLOSE

#define ZCLOSE (   filefunc,
  filestream 
)    ((*((filefunc).zclose_file))((filefunc).opaque,filestream))

Definition at line 66 of file ioapi.h.

◆ ZERROR

#define ZERROR (   filefunc,
  filestream 
)    ((*((filefunc).zerror_file))((filefunc).opaque,filestream))

Definition at line 67 of file ioapi.h.

◆ ZLIB_FILEFUNC_MODE_CREATE

#define ZLIB_FILEFUNC_MODE_CREATE   (8)

Definition at line 22 of file ioapi.h.

◆ ZLIB_FILEFUNC_MODE_EXISTING

#define ZLIB_FILEFUNC_MODE_EXISTING   (4)

Definition at line 21 of file ioapi.h.

◆ ZLIB_FILEFUNC_MODE_READ

#define ZLIB_FILEFUNC_MODE_READ   (1)

Definition at line 17 of file ioapi.h.

◆ ZLIB_FILEFUNC_MODE_READWRITEFILTER

#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)

Definition at line 19 of file ioapi.h.

◆ ZLIB_FILEFUNC_MODE_WRITE

#define ZLIB_FILEFUNC_MODE_WRITE   (2)

Definition at line 18 of file ioapi.h.

◆ ZLIB_FILEFUNC_SEEK_CUR

#define ZLIB_FILEFUNC_SEEK_CUR   (1)

Definition at line 13 of file ioapi.h.

◆ ZLIB_FILEFUNC_SEEK_END

#define ZLIB_FILEFUNC_SEEK_END   (2)

Definition at line 14 of file ioapi.h.

◆ ZLIB_FILEFUNC_SEEK_SET

#define ZLIB_FILEFUNC_SEEK_SET   (0)

Definition at line 15 of file ioapi.h.

◆ ZREAD

#define ZREAD (   filefunc,
  filestream,
  buf,
  size 
)    ((*((filefunc).zread_file))((filefunc).opaque,filestream,buf,size))

Definition at line 62 of file ioapi.h.

◆ ZSEEK

#define ZSEEK (   filefunc,
  filestream,
  pos,
  mode 
)    ((*((filefunc).zseek_file))((filefunc).opaque,filestream,pos,mode))

Definition at line 65 of file ioapi.h.

◆ ZTELL

#define ZTELL (   filefunc,
  filestream 
)    ((*((filefunc).ztell_file))((filefunc).opaque,filestream))

Definition at line 64 of file ioapi.h.

◆ ZWRITE

#define ZWRITE (   filefunc,
  filestream,
  buf,
  size 
)    ((*((filefunc).zwrite_file))((filefunc).opaque,filestream,buf,size))

Definition at line 63 of file ioapi.h.

Typedef Documentation

◆ buf

typedef voidpf const void * buf

Definition at line 39 of file ioapi.h.

◆ filename

typedef const char* filename

Definition at line 38 of file ioapi.h.

◆ mode

typedef const char int mode

Definition at line 38 of file ioapi.h.

◆ offset

typedef voidpf uLong offset

Definition at line 42 of file ioapi.h.

◆ origin

Definition at line 42 of file ioapi.h.

◆ size

typedef voidpf const void uLong size

Definition at line 39 of file ioapi.h.

◆ stream

typedef voidpf stream

Definition at line 39 of file ioapi.h.

◆ zlib_filefunc_def

Function Documentation

◆ int()

typedef int ( ZCALLBACK close_file_func)

◆ long()

typedef long ( ZCALLBACK tell_file_func)

◆ OF()

void fill_fopen_filefunc OF ( (zlib_filefunc_def *pzlib_filefunc_def)  )

◆ uLong()

typedef uLong ( ZCALLBACK read_file_func)

◆ voidpf()

typedef voidpf ( ZCALLBACK open_file_func)