Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
iowin32.c File Reference
#include <stdlib.h>
#include "zlib.h"
#include "ioapi.h"
#include "iowin32.h"

Go to the source code of this file.

Macros

#define INVALID_HANDLE_VALUE   (0xFFFFFFFF)
 
#define INVALID_SET_FILE_POINTER   ((DWORD)-1)
 

Functions

voidpf ZCALLBACK win32_open_file_func OF ((voidpf opaque, const char *filename, int mode))
 
uLong ZCALLBACK win32_read_file_func OF ((voidpf opaque, voidpf stream, void *buf, uLong size))
 
uLong ZCALLBACK win32_write_file_func OF ((voidpf opaque, voidpf stream, const void *buf, uLong size))
 
ZPOS64_T ZCALLBACK win32_tell64_file_func OF ((voidpf opaque, voidpf stream))
 
long ZCALLBACK win32_seek64_file_func OF ((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin))
 
voidpf ZCALLBACK win32_open64_file_func (voidpf opaque, const void *filename, int mode)
 
voidpf ZCALLBACK win32_open64_file_funcA (voidpf opaque, const void *filename, int mode)
 
voidpf ZCALLBACK win32_open64_file_funcW (voidpf opaque, const void *filename, int mode)
 
voidpf ZCALLBACK win32_open_file_func (voidpf opaque, const char *filename, int mode)
 
uLong ZCALLBACK win32_read_file_func (voidpf opaque, voidpf stream, void *buf, uLong size)
 
uLong ZCALLBACK win32_write_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size)
 
long ZCALLBACK win32_tell_file_func (voidpf opaque, voidpf stream)
 
ZPOS64_T ZCALLBACK win32_tell64_file_func (voidpf opaque, voidpf stream)
 
long ZCALLBACK win32_seek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
 
long ZCALLBACK win32_seek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)
 
int ZCALLBACK win32_close_file_func (voidpf opaque, voidpf stream)
 
int ZCALLBACK win32_error_file_func (voidpf opaque, voidpf stream)
 
void fill_win32_filefunc (zlib_filefunc_def *pzlib_filefunc_def)
 
void fill_win32_filefunc64 (zlib_filefunc64_def *pzlib_filefunc_def)
 
void fill_win32_filefunc64A (zlib_filefunc64_def *pzlib_filefunc_def)
 
void fill_win32_filefunc64W (zlib_filefunc64_def *pzlib_filefunc_def)
 

Macro Definition Documentation

◆ INVALID_HANDLE_VALUE

#define INVALID_HANDLE_VALUE   (0xFFFFFFFF)

Definition at line 21 of file iowin32.c.

Referenced by vl::DiskFile::open(), setfiletime(), vl::DiskFile::size(), TIFFOpen(), and TIFFOpenW().

◆ INVALID_SET_FILE_POINTER

#define INVALID_SET_FILE_POINTER   ((DWORD)-1)

Definition at line 25 of file iowin32.c.

Function Documentation

◆ fill_win32_filefunc()

void fill_win32_filefunc ( zlib_filefunc_def pzlib_filefunc_def)

◆ fill_win32_filefunc64()

void fill_win32_filefunc64 ( zlib_filefunc64_def pzlib_filefunc_def)

◆ fill_win32_filefunc64A()

void fill_win32_filefunc64A ( zlib_filefunc64_def pzlib_filefunc_def)

◆ fill_win32_filefunc64W()

void fill_win32_filefunc64W ( zlib_filefunc64_def pzlib_filefunc_def)

◆ OF() [1/5]

◆ OF() [2/5]

◆ OF() [3/5]

◆ OF() [4/5]

◆ OF() [5/5]

◆ win32_close_file_func()

int ZCALLBACK win32_close_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 385 of file iowin32.c.

References free(), and NULL.

Referenced by fill_win32_filefunc(), fill_win32_filefunc64(), fill_win32_filefunc64A(), and fill_win32_filefunc64W().

◆ win32_error_file_func()

int ZCALLBACK win32_error_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 403 of file iowin32.c.

References error, and NULL.

Referenced by fill_win32_filefunc(), fill_win32_filefunc64(), fill_win32_filefunc64A(), and fill_win32_filefunc64W().

◆ win32_open64_file_func()

voidpf ZCALLBACK win32_open64_file_func ( voidpf  opaque,
const void filename,
int  mode 
)

Definition at line 95 of file iowin32.c.

References NULL.

Referenced by fill_win32_filefunc64().

◆ win32_open64_file_funcA()

voidpf ZCALLBACK win32_open64_file_funcA ( voidpf  opaque,
const void filename,
int  mode 
)

Definition at line 124 of file iowin32.c.

References NULL.

Referenced by fill_win32_filefunc64A().

◆ win32_open64_file_funcW()

voidpf ZCALLBACK win32_open64_file_funcW ( voidpf  opaque,
const void filename,
int  mode 
)

Definition at line 148 of file iowin32.c.

References NULL.

Referenced by fill_win32_filefunc64W().

◆ win32_open_file_func()

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

Definition at line 168 of file iowin32.c.

References NULL.

Referenced by fill_win32_filefunc().

◆ win32_read_file_func()

uLong ZCALLBACK win32_read_file_func ( voidpf  opaque,
voidpf  stream,
void buf,
uLong  size 
)

Definition at line 197 of file iowin32.c.

References error, int, and NULL.

Referenced by fill_win32_filefunc(), fill_win32_filefunc64(), fill_win32_filefunc64A(), and fill_win32_filefunc64W().

◆ win32_seek64_file_func()

long ZCALLBACK win32_seek64_file_func ( voidpf  opaque,
voidpf  stream,
ZPOS64_T  offset,
int  origin 
)

◆ win32_seek_file_func()

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

Definition at line 308 of file iowin32.c.

References NULL, ZLIB_FILEFUNC_SEEK_CUR, ZLIB_FILEFUNC_SEEK_END, and ZLIB_FILEFUNC_SEEK_SET.

Referenced by fill_win32_filefunc().

◆ win32_tell64_file_func()

ZPOS64_T ZCALLBACK win32_tell64_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 283 of file iowin32.c.

References NULL.

Referenced by fill_win32_filefunc64(), fill_win32_filefunc64A(), and fill_win32_filefunc64W().

◆ win32_tell_file_func()

long ZCALLBACK win32_tell_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 260 of file iowin32.c.

References NULL.

Referenced by fill_win32_filefunc().

◆ win32_write_file_func()

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

Definition at line 219 of file iowin32.c.

References BOOL, error, int, and NULL.

Referenced by fill_win32_filefunc(), fill_win32_filefunc64(), fill_win32_filefunc64A(), and fill_win32_filefunc64W().