xref: /third_party/node/deps/zlib/inffast.h (revision 1cb0ef41)
11cb0ef41Sopenharmony_ci/* inffast.h -- header to use inffast.c
21cb0ef41Sopenharmony_ci * Copyright (C) 1995-2003, 2010 Mark Adler
31cb0ef41Sopenharmony_ci * For conditions of distribution and use, see copyright notice in zlib.h
41cb0ef41Sopenharmony_ci */
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ci/* WARNING: this file should *not* be used by applications. It is
71cb0ef41Sopenharmony_ci   part of the implementation of the compression library and is
81cb0ef41Sopenharmony_ci   subject to change. Applications should only use zlib.h.
91cb0ef41Sopenharmony_ci */
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci/* INFLATE_FAST_MIN_INPUT: the minimum number of input bytes needed so that
121cb0ef41Sopenharmony_ci   we can safely call inflate_fast() with only one up-front bounds check. One
131cb0ef41Sopenharmony_ci   length/distance code pair (15 bits for the length code, 5 bits for length
141cb0ef41Sopenharmony_ci   extra, 15 bits for the distance code, 13 bits for distance extra) requires
151cb0ef41Sopenharmony_ci   reading up to 48 input bits (6 bytes).
161cb0ef41Sopenharmony_ci*/
171cb0ef41Sopenharmony_ci#define INFLATE_FAST_MIN_INPUT 6
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_ci/* INFLATE_FAST_MIN_OUTPUT: the minimum number of output bytes needed so that
201cb0ef41Sopenharmony_ci   we can safely call inflate_fast() with only one up-front bounds check. One
211cb0ef41Sopenharmony_ci   length/distance code pair can output up to 258 bytes, which is the maximum
221cb0ef41Sopenharmony_ci   length that can be coded.
231cb0ef41Sopenharmony_ci */
241cb0ef41Sopenharmony_ci#define INFLATE_FAST_MIN_OUTPUT 258
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_civoid ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start);
27