Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
ioapi.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include "zlib.h"
Include dependency graph for ioapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  zlib_filefunc_def
 
struct  zlib_filefunc64_def
 
struct  zlib_filefunc64_32_def
 

Macros

#define __USE_FILE_OFFSET64
 
#define __USE_LARGEFILE64
 
#define _LARGEFILE64_SOURCE
 
#define _FILE_OFFSET_BIT   64
 
#define MAXU32   0xffffffff
 
#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 ZREAD64(filefunc, filestream, buf, size)    ((*((filefunc).zfile_func64.zread_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
 
#define ZWRITE64(filefunc, filestream, buf, size)    ((*((filefunc).zfile_func64.zwrite_file)) ((filefunc).zfile_func64.opaque,filestream,buf,size))
 
#define ZCLOSE64(filefunc, filestream)    ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))
 
#define ZERROR64(filefunc, filestream)    ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))
 
#define ZOPEN64(filefunc, filename, mode)    (call_zopen64((&(filefunc)),(filename),(mode)))
 
#define ZTELL64(filefunc, filestream)    (call_ztell64((&(filefunc)),(filestream)))
 
#define ZSEEK64(filefunc, filestream, pos, mode)    (call_zseek64((&(filefunc)),(filestream),(pos),(mode)))
 

Typedefs

typedef unsigned long long int ZPOS64_T
 
typedef voidpf open_file_func OF((voidpf opaque, const char *filename, int mode))
 

Functions

void fill_fopen64_filefunc OF ((zlib_filefunc64_def *pzlib_filefunc_def))
 
void fill_fopen_filefunc OF ((zlib_filefunc_def *pzlib_filefunc_def))
 
voidpf call_zopen64 OF ((const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode))
 
long call_zseek64 OF ((const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin))
 
ZPOS64_T call_ztell64 OF ((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)
 

Class Documentation

struct zlib_filefunc_def

Definition at line 146 of file ioapi.h.

Collaboration diagram for zlib_filefunc_def:
Collaboration graph
Class Members
voidpf opaque
close_file_func zclose_file
testerror_file_func zerror_file
open_file_func zopen_file
read_file_func zread_file
seek_file_func zseek_file
tell_file_func ztell_file
write_file_func zwrite_file
struct zlib_filefunc64_def

Definition at line 162 of file ioapi.h.

Collaboration diagram for zlib_filefunc64_def:
Collaboration graph
Class Members
voidpf opaque
close_file_func zclose_file
testerror_file_func zerror_file
open64_file_func zopen64_file
read_file_func zread_file
seek64_file_func zseek64_file
tell64_file_func ztell64_file
write_file_func zwrite_file
struct zlib_filefunc64_32_def

Definition at line 178 of file ioapi.h.

Collaboration diagram for zlib_filefunc64_32_def:
Collaboration graph
Class Members
zlib_filefunc64_def zfile_func64
open_file_func zopen32_file
seek_file_func zseek32_file
tell_file_func ztell32_file

Macro Definition Documentation

#define __USE_FILE_OFFSET64

Definition at line 30 of file ioapi.h.

#define __USE_LARGEFILE64

Definition at line 33 of file ioapi.h.

#define _FILE_OFFSET_BIT   64

Definition at line 39 of file ioapi.h.

#define _LARGEFILE64_SOURCE

Definition at line 36 of file ioapi.h.

#define MAXU32   0xffffffff

Definition at line 95 of file ioapi.h.

#define ZCALLBACK

Definition at line 128 of file ioapi.h.

#define ZCLOSE64 (   filefunc,
  filestream 
)    ((*((filefunc).zfile_func64.zclose_file)) ((filefunc).zfile_func64.opaque,filestream))

Definition at line 191 of file ioapi.h.

#define ZERROR64 (   filefunc,
  filestream 
)    ((*((filefunc).zfile_func64.zerror_file)) ((filefunc).zfile_func64.opaque,filestream))

Definition at line 192 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_CREATE   (8)

Definition at line 121 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_EXISTING   (4)

Definition at line 120 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_READ   (1)

Definition at line 116 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_READWRITEFILTER   (3)

Definition at line 118 of file ioapi.h.

#define ZLIB_FILEFUNC_MODE_WRITE   (2)

Definition at line 117 of file ioapi.h.

#define ZLIB_FILEFUNC_SEEK_CUR   (1)

Definition at line 112 of file ioapi.h.

#define ZLIB_FILEFUNC_SEEK_END   (2)

Definition at line 113 of file ioapi.h.

#define ZLIB_FILEFUNC_SEEK_SET   (0)

Definition at line 114 of file ioapi.h.

#define ZOPEN64 (   filefunc,
  filename,
  mode 
)    (call_zopen64((&(filefunc)),(filename),(mode)))

Definition at line 200 of file ioapi.h.

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

Definition at line 187 of file ioapi.h.

#define ZSEEK64 (   filefunc,
  filestream,
  pos,
  mode 
)    (call_zseek64((&(filefunc)),(filestream),(pos),(mode)))

Definition at line 202 of file ioapi.h.

#define ZTELL64 (   filefunc,
  filestream 
)    (call_ztell64((&(filefunc)),(filestream)))

Definition at line 201 of file ioapi.h.

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

Definition at line 188 of file ioapi.h.

Typedef Documentation

void test_compress OF ( (voidpf opaque, const char *filename, int mode)  )

Addition for GDAL : START

Addition for GDAL : END

Definition at line 135 of file ioapi.h.

typedef unsigned long long int ZPOS64_T

Definition at line 100 of file ioapi.h.

Function Documentation

void fill_zlib_filefunc64_32_def_from_filefunc32 ( zlib_filefunc64_32_def p_filefunc64_32,
const zlib_filefunc_def p_filefunc32 
)

Definition at line 69 of file ioapi.c.

void fill_fopen64_filefunc OF ( (zlib_filefunc64_def *pzlib_filefunc_def)  )
void fill_fopen_filefunc OF ( (zlib_filefunc_def *pzlib_filefunc_def)  )
voidpf call_zopen64 OF ( (const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode)  )
long call_zseek64 OF ( (const zlib_filefunc64_32_def *pfilefunc, voidpf filestream, ZPOS64_T offset, int origin)  )
ZPOS64_T call_ztell64 OF ( (const zlib_filefunc64_32_def *pfilefunc, voidpf filestream)  )