3 * ILE RPG400
version by Patrick Monnerat, DATASPHERE.
10 * two additional arguments:
11 * the package
version string and the
stream control structure.
12 *
size. This is needed because RPG lacks some macro feature.
13 * Call these procedures as:
16 /
if not defined(ZLIB_H_)
19 **************************************************************************
21 **************************************************************************
23 * Versioning information.
77 **************************************************************************
79 **************************************************************************
86 **************************************************************************
88 **************************************************************************
94 D zs_avail_in 10U 0
Byte cnt at next_in
95 D zs_total_in 10U 0 Total bytes
read 97 D zs_avail_out 10U 0 Room
left @ next_out
98 D zs_total_out 10U 0 Total bytes written
99 D zs_msg * Last errmsg or null
100 D zs_state * Internal state
101 D zs_zalloc * procptr
Int. state allocator
102 D zs_free * procptr
Int. state dealloc.
103 D zs_opaque * Private alloc.
data 104 D zs_data_type 10
i 0 ASC/BIN best guess
107 D 10U 0 Ptr. alignment
109 **************************************************************************
110 * Utility function prototypes
111 **************************************************************************
114 D dest 65535 options(*varsize) Destination
buffer 115 D destLen 10U 0 Destination
length 120 D dest 65535 options(*varsize) Destination
buffer 121 D destLen 10U 0 Destination
length 127 D sourceLen 10U 0
value 130 D dest 65535 options(*varsize) Destination
buffer 131 D destLen 10U 0 Destination
length 135 /
if not defined(LARGE_FILES)
138 D
path *
value options(*
string) File pathname
143 D
path *
value options(*
string) File pathname
148 D
path *
value options(*
string) File pathname
154 D fd 10
I 0
value File descriptor
168 D
buf 65535 options(*varsize) Buffer
173 D
buf 65535
const options(*varsize) Buffer
182 D
buf 65535 options(*varsize) Read
buffer 203 /
if not defined(LARGE_FILES)
208 D whence 10
i 0
value Origin
214 D whence 10
i 0
value Origin
220 D whence 10
i 0
value Origin
226 /
if not defined(LARGE_FILES)
240 /
if not defined(LARGE_FILES)
268 D errnum 10
I 0 Error
code 273 **************************************************************************
274 * Basic function prototypes
275 **************************************************************************
304 **************************************************************************
305 * Advanced function prototypes
306 **************************************************************************
313 D memLevel 10
I 0
value Mem/cmpress tradeoff
342 D pending 10U 0 Pending bytes
350 D
inflateInit2 PR 10
I 0 extproc(
'inflateInit2_') Init. expansion
365 D
dictionary 65535 options(*varsize) Dictionary bytes
366 D dictLength 10U 0 Dictionary
length 394 D window 65535 options(*varsize) Buffer
400 D
in *
value procptr Input function
401 D in_desc *
value Input descriptor
402 D
out *
value procptr Output function
403 D out_desc *
value Output descriptor
411 **************************************************************************
412 * Checksum function prototypes
413 **************************************************************************
416 D adler 10U 0
value Old checksum
417 D
buf 65535
const options(*varsize) Bytes to accumulate
420 D
crc32 PR 10U 0 extproc('
crc32') New checksum
421 D crc 10U 0
value Old checksum
422 D
buf 65535
const options(*varsize) Bytes to accumulate
425 **************************************************************************
426 * Miscellaneous function prototypes
427 **************************************************************************
GLenum GLuint GLenum GLsizei length
local int push(void *desc, unsigned char *buf, unsigned len)
uLong ZEXPORT compressBound(uLong sourceLen)
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
const char *ZEXPORT zError(int err)
int write(int fd, const char *buf, int nbytes)
int read(int fd, char *buf, int nbytes)
int ZEXPORT inflateResetKeep(z_streamp strm)
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
GLsizei const GLvoid * pointer
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
int ZEXPORT gzeof(gzFile file)
z_off64_t ZEXPORT gzoffset64(gzFile file)
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
GLsizei GLsizei GLchar * source
int ZEXPORT gzclose(gzFile file)
#define Z_DEFAULT_COMPRESSION
const z_crc_t FAR *ZEXPORT get_crc_table()
z_off_t ZEXPORT gztell(gzFile file)
int ZEXPORT inflateReset(z_streamp strm)
int ZEXPORT deflateInit2_(z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size)
uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
int ZEXPORT deflateEnd(z_streamp strm)
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
#define Z_BEST_COMPRESSION
#define inflateInit2(strm, windowBits)
#define inflateBackInit(strm, windowBits, window)
GLenum GLuint GLenum GLsizei const GLchar * buf
int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
int ZEXPORT gzgetc_(gzFile file)
int ZEXPORT gzputc(gzFile file, int c)
int ZEXPORT gzrewind(gzFile file)
z_off64_t ZEXPORT gztell64(gzFile file)
int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT gzungetc(int c, gzFile file)
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
#define ZLIB_VER_REVISION
#define inflateInit(strm)
GLsizei const GLchar ** path
GLenum GLenum GLenum input
int ZEXPORT inflateSyncPoint(z_streamp strm)
int ZEXPORT deflateCopy(z_streamp dest, z_streamp source)
local int out(void *out_desc, unsigned char *buf, unsigned len)
int ZEXPORT gzbuffer(gzFile file, unsigned size)
GLsizei GLsizei GLenum GLenum const GLvoid * data
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
int ZEXPORT inflateSync(z_streamp strm)
#define deflateInit(strm, level)
int ZEXPORT inflate(z_streamp strm, int flush)
int ZEXPORT gzclose_r(gzFile file)
#define ZLIB_VER_SUBREVISION
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
gzFile ZEXPORT gzdopen(int fd, const char *mode)
#define Z_DEFAULT_STRATEGY
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, uInt len)
int ZEXPORT inflateBackEnd(z_streamp strm)
int ZEXPORT gzclose_w(gzFile file)
int ZEXPORT gzputs(gzFile file, const char *str)
GLsizei const GLfloat * value
const char *ZEXPORT zlibVersion()
int const char int stream_size
int ZEXPORT deflate(z_streamp strm, int flush)
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
z_off_t ZEXPORT gzoffset(gzFile file)
int ZEXPORT gzgetc(gzFile file)
int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
if(!abbox) return FT_THROW(Invalid_Argument)
uLong ZEXPORT zlibCompileFlags()
const char *ZEXPORT gzerror(gzFile file, int *errnum)
png_infop png_charp * purpose
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy)
int Int
SIMPLE TYPE DECLARATIONS.
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
void ZEXPORT gzclearerr(gzFile file)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT gzflush(gzFile file, int flush)
gzFile ZEXPORT gzopen64(char *path, const char *mode) const
int ZEXPORT deflateResetKeep(z_streamp strm)
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
gzFile ZEXPORT gzopen(char *path, const char *mode) const
int ZEXPORT inflateUndermine(z_streamp strm, int subvert)
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
local int decode(struct state *s, struct huffman *h)
GLuint GLuint GLsizei count
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
int ZEXPORT deflateReset(z_streamp strm)
int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits)
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
long ZEXPORT inflateMark(z_streamp strm)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
int ZEXPORT inflateEnd(z_streamp strm)
output(gif_dest_ptr dinfo, int code)