diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2012-01-07 09:54:40 -0800 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2012-01-07 14:03:07 -0800 |
commit | 263b1a05b04e442896d7941f87d022a2f35a9220 (patch) | |
tree | 465a40cf714deb72b89504c1f3f9665db3feafd6 /deflate.h | |
parent | 19761b8506f15d6eeeb6ccfab33a11abce0f40e7 (diff) | |
download | zlib-263b1a05b04e442896d7941f87d022a2f35a9220.tar.gz zlib-263b1a05b04e442896d7941f87d022a2f35a9220.tar.bz2 zlib-263b1a05b04e442896d7941f87d022a2f35a9220.zip |
Allow deflatePrime() to insert bits in the middle of a stream.
This allows the insertion of multiple empty static blocks for the
purpose of efficiently bringing a stream to a byte boundary.
Diffstat (limited to 'deflate.h')
-rw-r--r-- | deflate.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* deflate.h -- internal compression state | 1 | /* deflate.h -- internal compression state |
2 | * Copyright (C) 1995-2010 Jean-loup Gailly | 2 | * Copyright (C) 1995-2012 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 | ||
@@ -48,6 +48,9 @@ | |||
48 | #define MAX_BITS 15 | 48 | #define MAX_BITS 15 |
49 | /* All codes must not exceed MAX_BITS bits */ | 49 | /* All codes must not exceed MAX_BITS bits */ |
50 | 50 | ||
51 | #define Buf_size 16 | ||
52 | /* size of bit buffer in bi_buf */ | ||
53 | |||
51 | #define INIT_STATE 42 | 54 | #define INIT_STATE 42 |
52 | #define EXTRA_STATE 69 | 55 | #define EXTRA_STATE 69 |
53 | #define NAME_STATE 73 | 56 | #define NAME_STATE 73 |