Fossil SCM

fossil-scm / compat / zlib / contrib / infback9 / infback9.h
Source Blame History 37 lines
7ef7284… drh 1 /* infback9.h -- header for using inflateBack9 functions
7ef7284… drh 2 * Copyright (C) 2003 Mark Adler
7ef7284… drh 3 * For conditions of distribution and use, see copyright notice in zlib.h
7ef7284… drh 4 */
7ef7284… drh 5
7ef7284… drh 6 /*
7ef7284… drh 7 * This header file and associated patches provide a decoder for PKWare's
7ef7284… drh 8 * undocumented deflate64 compression method (method 9). Use with infback9.c,
7ef7284… drh 9 * inftree9.h, inftree9.c, and inffix9.h. These patches are not supported.
7ef7284… drh 10 * This should be compiled with zlib, since it uses zutil.h and zutil.o.
7ef7284… drh 11 * This code has not yet been tested on 16-bit architectures. See the
7ef7284… drh 12 * comments in zlib.h for inflateBack() usage. These functions are used
7ef7284… drh 13 * identically, except that there is no windowBits parameter, and a 64K
7ef7284… drh 14 * window must be provided. Also if int's are 16 bits, then a zero for
7ef7284… drh 15 * the third parameter of the "out" function actually means 65536UL.
7ef7284… drh 16 * zlib.h must be included before this header file.
7ef7284… drh 17 */
7ef7284… drh 18
7ef7284… drh 19 #ifdef __cplusplus
7ef7284… drh 20 extern "C" {
7ef7284… drh 21 #endif
7ef7284… drh 22
f1f1d6c… drh 23 ZEXTERN int ZEXPORT inflateBack9(z_stream FAR *strm,
f1f1d6c… drh 24 in_func in, void FAR *in_desc,
f1f1d6c… drh 25 out_func out, void FAR *out_desc);
f1f1d6c… drh 26 ZEXTERN int ZEXPORT inflateBack9End(z_stream FAR *strm);
f1f1d6c… drh 27 ZEXTERN int ZEXPORT inflateBack9Init_(z_stream FAR *strm,
f1f1d6c… drh 28 unsigned char FAR *window,
f1f1d6c… drh 29 const char *version,
f1f1d6c… drh 30 int stream_size);
7ef7284… drh 31 #define inflateBack9Init(strm, window) \
7ef7284… drh 32 inflateBack9Init_((strm), (window), \
7ef7284… drh 33 ZLIB_VERSION, sizeof(z_stream))
7ef7284… drh 34
7ef7284… drh 35 #ifdef __cplusplus
7ef7284… drh 36 }
7ef7284… drh 37 #endif

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button