Ruby: ext/zlib/zlib-1.2.13/contrib/infback9/infback9.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

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