deflate.h (e37bb444aa945ed0725766e986698a09bd61b1b2) deflate.h (4717628ed859513a3262ea68259d0605f39de0b3)
1/* deflate.h -- internal compression state
2 * Copyright (C) 1995-2018 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6/* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is
8 subject to change. Applications should only use zlib.h.

--- 277 unchanged lines hidden (view full) ---

286 * distances are limited to MAX_DIST instead of WSIZE.
287 */
288
289#define WIN_INIT MAX_MATCH
290/* Number of bytes after end of data in window to initialize in order to avoid
291 memory checker errors from longest match routines */
292
293 /* in trees.c */
1/* deflate.h -- internal compression state
2 * Copyright (C) 1995-2018 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */
5
6/* WARNING: this file should *not* be used by applications. It is
7 part of the implementation of the compression library and is
8 subject to change. Applications should only use zlib.h.

--- 277 unchanged lines hidden (view full) ---

286 * distances are limited to MAX_DIST instead of WSIZE.
287 */
288
289#define WIN_INIT MAX_MATCH
290/* Number of bytes after end of data in window to initialize in order to avoid
291 memory checker errors from longest match routines */
292
293 /* in trees.c */
294void ZLIB_INTERNAL _tr_init OF((deflate_state *s));
295int ZLIB_INTERNAL _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));
296void ZLIB_INTERNAL _tr_flush_block OF((deflate_state *s, charf *buf,
297 ulg stored_len, int last));
298void ZLIB_INTERNAL _tr_flush_bits OF((deflate_state *s));
299void ZLIB_INTERNAL _tr_align OF((deflate_state *s));
300void ZLIB_INTERNAL _tr_stored_block OF((deflate_state *s, charf *buf,
301 ulg stored_len, int last));
294void ZLIB_INTERNAL _tr_init(deflate_state *s);
295int ZLIB_INTERNAL _tr_tally(deflate_state *s, unsigned dist, unsigned lc);
296void ZLIB_INTERNAL _tr_flush_block(deflate_state *s, charf *buf,
297 ulg stored_len, int last);
298void ZLIB_INTERNAL _tr_flush_bits(deflate_state *s);
299void ZLIB_INTERNAL _tr_align(deflate_state *s);
300void ZLIB_INTERNAL _tr_stored_block(deflate_state *s, charf *buf,
301 ulg stored_len, int last);
302
303#define d_code(dist) \
304 ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
305/* Mapping from a distance to a distance code. dist is the distance - 1 and
306 * must not have side effects. _dist_code[256] and _dist_code[257] are never
307 * used.
308 */
309

--- 37 unchanged lines hidden ---
302
303#define d_code(dist) \
304 ((dist) < 256 ? _dist_code[dist] : _dist_code[256+((dist)>>7)])
305/* Mapping from a distance to a distance code. dist is the distance - 1 and
306 * must not have side effects. _dist_code[256] and _dist_code[257] are never
307 * used.
308 */
309

--- 37 unchanged lines hidden ---