SimCenterCommon
Common functionality used within different SimCenter projects
ioapi.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "ioapi.h"
Include dependency graph for ioapi.c:

Go to the source code of this file.

Macros

#define SEEK_CUR   1
 
#define SEEK_END   2
 
#define SEEK_SET   0
 

Functions

voidpf ZCALLBACK fopen_file_func OF ((voidpf opaque, const char *filename, int mode))
 
uLong ZCALLBACK fread_file_func OF ((voidpf opaque, voidpf stream, void *buf, uLong size))
 
uLong ZCALLBACK fwrite_file_func OF ((voidpf opaque, voidpf stream, const void *buf, uLong size))
 
long ZCALLBACK ftell_file_func OF ((voidpf opaque, voidpf stream))
 
long ZCALLBACK fseek_file_func OF ((voidpf opaque, voidpf stream, uLong offset, int origin))
 
voidpf ZCALLBACK fopen_file_func (voidpf opaque, const char *filename, int mode)
 
uLong ZCALLBACK fread_file_func (voidpf opaque, voidpf stream, void *buf, uLong size)
 
uLong ZCALLBACK fwrite_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size)
 
long ZCALLBACK ftell_file_func (voidpf opaque, voidpf stream)
 
long ZCALLBACK fseek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
 
int ZCALLBACK fclose_file_func (voidpf opaque, voidpf stream)
 
int ZCALLBACK ferror_file_func (voidpf opaque, voidpf stream)
 
void fill_fopen_filefunc (zlib_filefunc_def *pzlib_filefunc_def)
 

Macro Definition Documentation

#define SEEK_CUR   1

Definition at line 21 of file ioapi.c.

#define SEEK_END   2

Definition at line 25 of file ioapi.c.

#define SEEK_SET   0

Definition at line 29 of file ioapi.c.

Function Documentation

int ZCALLBACK fclose_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 153 of file ioapi.c.

int ZCALLBACK ferror_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 163 of file ioapi.c.

void fill_fopen_filefunc ( zlib_filefunc_def pzlib_filefunc_def)

Definition at line 173 of file ioapi.c.

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

Definition at line 68 of file ioapi.c.

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

Definition at line 91 of file ioapi.c.

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

Definition at line 126 of file ioapi.c.

long ZCALLBACK ftell_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 116 of file ioapi.c.

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

Definition at line 104 of file ioapi.c.

voidpf ZCALLBACK fopen_file_func OF ( (voidpf opaque, const char *filename, int mode )
uLong ZCALLBACK fwrite_file_func OF ( (voidpf opaque, voidpf stream, const void *buf, uLong size )