1275793eaSopenharmony_ci/* infback9.h -- header for using inflateBack9 functions 2275793eaSopenharmony_ci * Copyright (C) 2003 Mark Adler 3275793eaSopenharmony_ci * For conditions of distribution and use, see copyright notice in zlib.h 4275793eaSopenharmony_ci */ 5275793eaSopenharmony_ci 6275793eaSopenharmony_ci/* 7275793eaSopenharmony_ci * This header file and associated patches provide a decoder for PKWare's 8275793eaSopenharmony_ci * undocumented deflate64 compression method (method 9). Use with infback9.c, 9275793eaSopenharmony_ci * inftree9.h, inftree9.c, and inffix9.h. These patches are not supported. 10275793eaSopenharmony_ci * This should be compiled with zlib, since it uses zutil.h and zutil.o. 11275793eaSopenharmony_ci * This code has not yet been tested on 16-bit architectures. See the 12275793eaSopenharmony_ci * comments in zlib.h for inflateBack() usage. These functions are used 13275793eaSopenharmony_ci * identically, except that there is no windowBits parameter, and a 64K 14275793eaSopenharmony_ci * window must be provided. Also if int's are 16 bits, then a zero for 15275793eaSopenharmony_ci * the third parameter of the "out" function actually means 65536UL. 16275793eaSopenharmony_ci * zlib.h must be included before this header file. 17275793eaSopenharmony_ci */ 18275793eaSopenharmony_ci 19275793eaSopenharmony_ci#ifdef __cplusplus 20275793eaSopenharmony_ciextern "C" { 21275793eaSopenharmony_ci#endif 22275793eaSopenharmony_ci 23275793eaSopenharmony_ciZEXTERN int ZEXPORT inflateBack9(z_stream FAR *strm, 24275793eaSopenharmony_ci in_func in, void FAR *in_desc, 25275793eaSopenharmony_ci out_func out, void FAR *out_desc); 26275793eaSopenharmony_ciZEXTERN int ZEXPORT inflateBack9End(z_stream FAR *strm); 27275793eaSopenharmony_ciZEXTERN int ZEXPORT inflateBack9Init_(z_stream FAR *strm, 28275793eaSopenharmony_ci unsigned char FAR *window, 29275793eaSopenharmony_ci const char *version, 30275793eaSopenharmony_ci int stream_size); 31275793eaSopenharmony_ci#define inflateBack9Init(strm, window) \ 32275793eaSopenharmony_ci inflateBack9Init_((strm), (window), \ 33275793eaSopenharmony_ci ZLIB_VERSION, sizeof(z_stream)) 34275793eaSopenharmony_ci 35275793eaSopenharmony_ci#ifdef __cplusplus 36275793eaSopenharmony_ci} 37275793eaSopenharmony_ci#endif 38