2011-09-06 16:13:05 -07:00
|
|
|
/* inffast.h -- header to use inffast.c
|
2014-12-02 15:28:24 -08:00
|
|
|
* Copyright (C) 1995-2003, 2010 Mark Adler
|
2011-09-06 16:13:05 -07:00
|
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* WARNING: this file should *not* be used by applications. It is
|
|
|
|
part of the implementation of the compression library and is
|
|
|
|
subject to change. Applications should only use zlib.h.
|
|
|
|
*/
|
|
|
|
|
2020-01-05 19:49:55 -05:00
|
|
|
/* INFLATE_FAST_MIN_INPUT: the minimum number of input bytes needed so that
|
|
|
|
we can safely call inflate_fast() with only one up-front bounds check. One
|
|
|
|
length/distance code pair (15 bits for the length code, 5 bits for length
|
|
|
|
extra, 15 bits for the distance code, 13 bits for distance extra) requires
|
|
|
|
reading up to 48 input bits (6 bytes).
|
|
|
|
*/
|
|
|
|
#define INFLATE_FAST_MIN_INPUT 6
|
|
|
|
|
|
|
|
/* INFLATE_FAST_MIN_OUTPUT: the minimum number of output bytes needed so that
|
|
|
|
we can safely call inflate_fast() with only one up-front bounds check. One
|
|
|
|
length/distance code pair can output up to 258 bytes, which is the maximum
|
|
|
|
length that can be coded.
|
|
|
|
*/
|
|
|
|
#define INFLATE_FAST_MIN_OUTPUT 258
|
|
|
|
|
2023-06-06 17:33:41 +01:00
|
|
|
void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start);
|