Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
ioapi.c File Reference
#include "ioapi.h"
Include dependency graph for ioapi.c:

Go to the source code of this file.

Macros

#define FOPEN_FUNC(filename, mode)   fopen64(filename, mode)
 
#define FTELLO_FUNC(stream)   ftello64(stream)
 
#define FSEEKO_FUNC(stream, offset, origin)   fseeko64(stream, offset, origin)
 

Functions

voidpf call_zopen64 (const zlib_filefunc64_32_def *pfilefunc, const void *filename, int mode)
 
long 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)
 
void fill_zlib_filefunc64_32_def_from_filefunc32 (zlib_filefunc64_32_def *p_filefunc64_32, const zlib_filefunc_def *p_filefunc32)
 
static voidpf fopen_file_func OF ((voidpf opaque, const char *filename, int mode))
 
static uLong fread_file_func OF ((voidpf opaque, voidpf stream, void *buf, uLong size))
 
static uLong fwrite_file_func OF ((voidpf opaque, voidpf stream, const void *buf, uLong size))
 
static ZPOS64_T ftell64_file_func OF ((voidpf opaque, voidpf stream))
 
static long fseek64_file_func OF ((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin))
 
static voidpf fopen_file_func (voidpf opaque, const char *filename, int mode)
 
static voidpf fopen64_file_func (voidpf opaque, const void *filename, int mode)
 
static uLong fread_file_func (voidpf opaque, voidpf stream, void *buf, uLong size)
 
static uLong fwrite_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size)
 
static long ftell_file_func (voidpf opaque, voidpf stream)
 
static ZPOS64_T ftell64_file_func (voidpf opaque, voidpf stream)
 
static long fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
 
static long fseek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)
 
static int fclose_file_func (voidpf opaque, voidpf stream)
 
static int ferror_file_func (voidpf opaque, voidpf stream)
 
void fill_fopen_filefunc (zlib_filefunc_def *pzlib_filefunc_def)
 
void fill_fopen64_filefunc (zlib_filefunc64_def *pzlib_filefunc_def)
 

Macro Definition Documentation

#define FOPEN_FUNC (   filename,
  mode 
)    fopen64(filename, mode)

Definition at line 23 of file ioapi.c.

#define FSEEKO_FUNC (   stream,
  offset,
  origin 
)    fseeko64(stream, offset, origin)

Definition at line 25 of file ioapi.c.

#define FTELLO_FUNC (   stream)    ftello64(stream)

Definition at line 24 of file ioapi.c.

Function Documentation

voidpf call_zopen64 ( const zlib_filefunc64_32_def pfilefunc,
const void *  filename,
int  mode 
)

Definition at line 31 of file ioapi.c.

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

Definition at line 41 of file ioapi.c.

ZPOS64_T call_ztell64 ( const zlib_filefunc64_32_def pfilefunc,
voidpf  filestream 
)

Definition at line 55 of file ioapi.c.

static int fclose_file_func ( voidpf  opaque,
voidpf  stream 
)
static

Definition at line 210 of file ioapi.c.

static int ferror_file_func ( voidpf  opaque,
voidpf  stream 
)
static

Definition at line 217 of file ioapi.c.

void fill_fopen64_filefunc ( zlib_filefunc64_def pzlib_filefunc_def)

Definition at line 237 of file ioapi.c.

void fill_fopen_filefunc ( zlib_filefunc_def pzlib_filefunc_def)

Definition at line 224 of file ioapi.c.

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.

static voidpf fopen64_file_func ( voidpf  opaque,
const void *  filename,
int  mode 
)
static

Definition at line 113 of file ioapi.c.

static voidpf fopen_file_func ( voidpf  opaque,
const char *  filename,
int  mode 
)
static

Definition at line 95 of file ioapi.c.

static uLong fread_file_func ( voidpf  opaque,
voidpf  stream,
void *  buf,
uLong  size 
)
static

Definition at line 132 of file ioapi.c.

static long fseek64_file_func ( voidpf  opaque,
voidpf  stream,
ZPOS64_T  offset,
int  origin 
)
static

Definition at line 184 of file ioapi.c.

static long fseek_file_func ( voidpf  opaque,
voidpf  stream,
uLong  offset,
int  origin 
)
static

Definition at line 161 of file ioapi.c.

static ZPOS64_T ftell64_file_func ( voidpf  opaque,
voidpf  stream 
)
static

Definition at line 154 of file ioapi.c.

static long ftell_file_func ( voidpf  opaque,
voidpf  stream 
)
static

Definition at line 146 of file ioapi.c.

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

Definition at line 139 of file ioapi.c.

static voidpf fopen_file_func OF ( (voidpf opaque, const char *filename, int mode)  )
static
static uLong fread_file_func OF ( (voidpf opaque, voidpf stream, void *buf, uLong size )
static
static uLong fwrite_file_func OF ( (voidpf opaque, voidpf stream, const void *buf, uLong size )
static
static ZPOS64_T ftell64_file_func OF ( (voidpf opaque, voidpf stream)  )
static
static long fseek64_file_func OF ( (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)  )
static