aboutsummaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:13:27 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:13:27 -0700
commit8a2acbffc86012de3523ecf91db2c4ea1b1c4ea2 (patch)
treec461eb314065024b6cb87d136e107dca2cc09a33 /deflate.h
parent56bcb184fac036a45cb8937238d51778d0a796aa (diff)
downloadzlib-8a2acbffc86012de3523ecf91db2c4ea1b1c4ea2.tar.gz
zlib-8a2acbffc86012de3523ecf91db2c4ea1b1c4ea2.tar.bz2
zlib-8a2acbffc86012de3523ecf91db2c4ea1b1c4ea2.zip
zlib 1.0-prev1.0-pre
Diffstat (limited to 'deflate.h')
-rw-r--r--deflate.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/deflate.h b/deflate.h
index cd0a6a3..834563b 100644
--- a/deflate.h
+++ b/deflate.h
@@ -1,5 +1,5 @@
1/* deflate.h -- internal compression state 1/* deflate.h -- internal compression state
2 * Copyright (C) 1995-1996 Jean-loup Gailly 2 * Copyright (C) 1995 Jean-loup Gailly
3 * For conditions of distribution and use, see copyright notice in zlib.h 3 * For conditions of distribution and use, see copyright notice in zlib.h
4 */ 4 */
5 5
@@ -10,15 +10,17 @@
10 10
11/* $Id: deflate.h,v 1.5 1995/05/03 17:27:09 jloup Exp $ */ 11/* $Id: deflate.h,v 1.5 1995/05/03 17:27:09 jloup Exp $ */
12 12
13#ifndef _DEFLATE_H
14#define _DEFLATE_H
15
16#include "zutil.h" 13#include "zutil.h"
17 14
18/* =========================================================================== 15/* ===========================================================================
19 * Internal compression state. 16 * Internal compression state.
20 */ 17 */
21 18
19/* Data type */
20#define BINARY 0
21#define ASCII 1
22#define UNKNOWN 2
23
22#define LENGTH_CODES 29 24#define LENGTH_CODES 29
23/* number of length codes, not counting the special END_BLOCK code */ 25/* number of length codes, not counting the special END_BLOCK code */
24 26
@@ -85,6 +87,7 @@ typedef struct internal_state {
85 Bytef *pending_buf; /* output still pending */ 87 Bytef *pending_buf; /* output still pending */
86 Bytef *pending_out; /* next pending byte to output to the stream */ 88 Bytef *pending_out; /* next pending byte to output to the stream */
87 int pending; /* nb of bytes in the pending buffer */ 89 int pending; /* nb of bytes in the pending buffer */
90 uLong adler; /* adler32 of uncompressed data */
88 int noheader; /* suppress zlib header and adler32 */ 91 int noheader; /* suppress zlib header and adler32 */
89 Byte data_type; /* UNKNOWN, BINARY or ASCII */ 92 Byte data_type; /* UNKNOWN, BINARY or ASCII */
90 Byte method; /* STORED (for zip only) or DEFLATED */ 93 Byte method; /* STORED (for zip only) or DEFLATED */
@@ -265,11 +268,9 @@ typedef struct internal_state {
265 */ 268 */
266 269
267 /* in trees.c */ 270 /* in trees.c */
268void _tr_init OF((deflate_state *s)); 271void tr_init OF((deflate_state *s));
269int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc)); 272int tr_tally OF((deflate_state *s, int dist, int lc));
270ulg _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, 273ulg tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len, int eof));
271 int eof)); 274void tr_align OF((deflate_state *s));
272void _tr_align OF((deflate_state *s)); 275void tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len,
273void _tr_stored_block OF((deflate_state *s, charf *buf, ulg stored_len, 276 int eof));
274 int eof));
275#endif