inffast.h 1.1 KB

1234567891011121314151617181920212223242526
  1. /* inffast.h -- header to use inffast.c
  2. * Copyright (C) 1995-2003, 2010 Mark Adler
  3. * For conditions of distribution and use, see copyright notice in zlib.h
  4. */
  5. /* WARNING: this file should *not* be used by applications. It is
  6. part of the implementation of the compression library and is
  7. subject to change. Applications should only use zlib.h.
  8. */
  9. /* INFLATE_FAST_MIN_INPUT: the minimum number of input bytes needed so that
  10. we can safely call inflate_fast() with only one up-front bounds check. One
  11. length/distance code pair (15 bits for the length code, 5 bits for length
  12. extra, 15 bits for the distance code, 13 bits for distance extra) requires
  13. reading up to 48 input bits (6 bytes).
  14. */
  15. #define INFLATE_FAST_MIN_INPUT 6
  16. /* INFLATE_FAST_MIN_OUTPUT: the minimum number of output bytes needed so that
  17. we can safely call inflate_fast() with only one up-front bounds check. One
  18. length/distance code pair can output up to 258 bytes, which is the maximum
  19. length that can be coded.
  20. */
  21. #define INFLATE_FAST_MIN_OUTPUT 258
  22. void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));