infback9.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. * This header file and associated patches provide a decoder for PKWare's
  7. * undocumented deflate64 compression method (method 9). Use with infback9.c,
  8. * inftree9.h, inftree9.c, and inffix9.h. These patches are not supported.
  9. * This should be compiled with zlib, since it uses zutil.h and zutil.o.
  10. * This code has not yet been tested on 16-bit architectures. See the
  11. * comments in zlib.h for inflateBack() usage. These functions are used
  12. * identically, except that there is no windowBits parameter, and a 64K
  13. * window must be provided. Also if int's are 16 bits, then a zero for
  14. * the third parameter of the "out" function actually means 65536UL.
  15. * zlib.h must be included before this header file.
  16. */
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. ZEXTERN int ZEXPORT inflateBack9 OF((z_stream FAR *strm,
  21. in_func in, void FAR *in_desc,
  22. out_func out, void FAR *out_desc));
  23. ZEXTERN int ZEXPORT inflateBack9End OF((z_stream FAR *strm));
  24. ZEXTERN int ZEXPORT inflateBack9Init_ OF((z_stream FAR *strm,
  25. unsigned char FAR *window,
  26. const char *version,
  27. int stream_size));
  28. #define inflateBack9Init(strm, window) \
  29. inflateBack9Init_((strm), (window), \
  30. ZLIB_VERSION, sizeof(z_stream))
  31. #ifdef __cplusplus
  32. }
  33. #endif