1 * ZLIB.INC -
Interface to the general purpose compression library
3 * ILE RPG400
version by Patrick Monnerat, DATASPHERE.
10 * two additional arguments:
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 **************************************************************************
87 **************************************************************************
89 **************************************************************************
94 D zs_next_in * Next
input byte
95 D zs_avail_in 10U 0
Byte cnt at next_in
98 D zs_avail_out 10U 0 Room left @ next_out
99 D zs_total_out 10U 0 Total
bytes written
100 D zs_msg * Last errmsg or null
101 D zs_state * Internal
state
103 D zs_free * procptr Int.
state dealloc.
105 D zs_data_type 10
i 0 ASC/BIN best guess
108 D 10U 0 Ptr. alignment
110 **************************************************************************
111 * Utility function prototypes
112 **************************************************************************
116 D destLen 10U 0 Destination
length
122 D destLen 10U 0 Destination
length
132 D destLen 10U 0 Destination
length
138 D destLen 10U 0 Destination
length
140 D sourceLen 10U 0 Source
length
142 /
if not defined(LARGE_FILES)
222 /
if not defined(LARGE_FILES)
245 /
if not defined(LARGE_FILES)
259 /
if not defined(LARGE_FILES)
295 **************************************************************************
296 * Basic function prototypes
297 **************************************************************************
326 **************************************************************************
327 * Advanced function prototypes
328 **************************************************************************
333 D method 10
I 0
value Compression method
335 D memLevel 10
I 0
value Mem/cmpress tradeoff
336 D strategy 10
I 0
value Compression strategy
356 D strategy 10
I 0
value Compression strategy
371 D pending 10U 0 Pending
bytes
395 D dictLength 10U 0 Dictionary
length
401 D dictLength 10U 0 Dictionary
length
455 D in_desc *
value Input descriptor
465 **************************************************************************
466 * Checksum function prototypes
467 **************************************************************************
470 D adler 10U 0
value Old checksum
476 D adler1 10U 0
value Old checksum
477 D adler2 10U 0
value Old checksum
481 D adler 10U 0
value Old checksum
486 D crc 10U 0
value Old checksum
492 D crc1 10U 0
value Old checksum
493 D crc2 10U 0
value Old checksum
497 D crc 10U 0
value Old checksum
501 **************************************************************************
502 * Miscellaneous function prototypes
503 **************************************************************************
RzBinInfo * info(RzBinFile *bf)
int bits(struct state *s, int need)
const lzma_allocator * allocator
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
uLong ZEXPORT compressBound(uLong sourceLen)
int ZEXPORT compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
static static fork const void static count static fd const char const char static newpath const char static path const char path
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
int ZEXPORT deflateSetHeader(z_streamp strm, gz_headerp head)
int ZEXPORT deflateInit_(z_streamp strm, int level, const char *version, int stream_size)
int ZEXPORT deflatePending(z_streamp strm, unsigned *pending, int *bits)
int ZEXPORT deflateCopy(z_streamp dest, z_streamp source)
int ZEXPORT deflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
int ZEXPORT deflateReset(z_streamp strm)
int ZEXPORT deflateParams(z_streamp strm, int level, int strategy)
uLong ZEXPORT deflateBound(z_streamp strm, uLong sourceLen)
int ZEXPORT deflateTune(z_streamp strm, int good_length, int max_lazy, int nice_length, int max_chain)
int ZEXPORT deflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT deflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
int ZEXPORT deflateResetKeep(z_streamp strm)
int ZEXPORT deflateEnd(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)
int ZEXPORT deflate(z_streamp strm, int flush)
int(* decode)(const ut8 *, ebc_command_t *cmd)
static void encode(size_t size, lzma_action action)
int ZEXPORT gzclose(gzFile file)
void ZEXPORT gzclearerr(gzFile file)
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
int ZEXPORT gzrewind(gzFile file)
z_off64_t ZEXPORT gztell64(gzFile file)
gzFile ZEXPORT gzopen64(char *path, const char *mode) const
z_off_t ZEXPORT gzseek(gzFile file, z_off_t offset, int whence)
gzFile ZEXPORT gzopen(char *path, const char *mode) const
int ZEXPORT gzeof(gzFile file)
gzFile ZEXPORT gzdopen(int fd, const char *mode)
z_off64_t ZEXPORT gzoffset64(gzFile file)
z_off_t ZEXPORT gzoffset(gzFile file)
const char *ZEXPORT gzerror(gzFile file, int *errnum)
z_off_t ZEXPORT gztell(gzFile file)
int ZEXPORT gzbuffer(gzFile file, unsigned size)
int ZEXPORT gzungetc(int c, gzFile file)
int ZEXPORT gzgetc(gzFile file)
int ZEXPORT gzdirect(gzFile file)
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
int ZEXPORT gzgetc_(gzFile file)
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
int ZEXPORT gzclose_r(gzFile file)
z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file)
int ZEXPORT gzsetparams(gzFile file, int level, int strategy)
int ZEXPORT gzputc(gzFile file, int c)
int ZEXPORT gzputs(gzFile file, const char *s)
int ZEXPORT gzflush(gzFile file, int flush)
int ZEXPORT gzclose_w(gzFile file)
int ZEXPORT gzwrite(gzFile file, voidpc buf, unsigned len)
z_size_t ZEXPORT gzfwrite(voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, unsigned char FAR *window, const char *version, int stream_size)
int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc, out_func out, void FAR *out_desc)
int ZEXPORT inflateBackEnd(z_streamp strm)
unsigned long ZEXPORT inflateCodesUsed(z_streamp strm)
int ZEXPORT inflateSetDictionary(z_streamp strm, const Bytef *dictionary, uInt dictLength)
long ZEXPORT inflateMark(z_streamp strm)
int ZEXPORT inflateGetDictionary(z_streamp strm, Bytef *dictionary, uInt *dictLength)
int ZEXPORT inflateSyncPoint(z_streamp strm)
int ZEXPORT inflatePrime(z_streamp strm, int bits, int value)
int ZEXPORT inflateGetHeader(z_streamp strm, gz_headerp head)
int ZEXPORT inflateUndermine(z_streamp strm, int subvert)
int ZEXPORT inflateSync(z_streamp strm)
int ZEXPORT inflateResetKeep(z_streamp strm)
int ZEXPORT inflate(z_streamp strm, int flush)
int ZEXPORT inflateReset(z_streamp strm)
int ZEXPORT inflateInit_(z_streamp strm, const char *version, int stream_size)
int ZEXPORT inflateEnd(z_streamp strm)
int ZEXPORT inflateCopy(z_streamp dest, z_streamp source)
int ZEXPORT inflateValidate(z_streamp strm, int check)
int ZEXPORT inflateReset2(z_streamp strm, int windowBits)
int Init(const char *driverPath)
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf nice
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char pathname
static const char struct stat static buf struct stat static buf static vhangup int options
static void insert(char *dst, const char *src)
static struct sockaddr static addrlen static backlog const void static flags void struct sockaddr socklen_t static fromlen const void const struct sockaddr to
uLong ZEXPORT adler32_z(uLong adler, const Bytef *buf, z_size_t len)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)
uLong ZEXPORT adler32_combine(uLong adler1, uLong adler2, z_off_t len2)
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)
if(dbg->bits==RZ_SYS_BITS_64)
static const z80_opcode fd[]
static bool input(void *ud, zip_uint8_t *data, zip_uint64_t length)
unsigned long ZEXPORT crc32_z(unsigned long crc, const unsigned char FAR *buf, z_size_t len)
const z_crc_t FAR *ZEXPORT get_crc_table()
uLong ZEXPORT crc32_combine(uLong crc1, uLong crc2, z_off_t len2)
unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, uInt len)
gz_header FAR * gz_headerp
#define Z_DEFAULT_STRATEGY
#define deflateInit2(strm, level, method, windowBits, memLevel, strategy)
#define inflateInit2(strm, windowBits)
#define ZLIB_VER_SUBREVISION
#define Z_BEST_COMPRESSION
#define inflateBackInit(strm, windowBits, window)
#define ZLIB_VER_REVISION
#define inflateInit(strm)
#define deflateInit(strm, level)
#define Z_DEFAULT_COMPRESSION
int read(izstream &zs, T *x, Items items)
const char *ZEXPORT zError(int err)
const char *ZEXPORT zlibVersion()
uLong ZEXPORT zlibCompileFlags()