Skip to content

Commit

Permalink
Add deflateUsed() function to get the used bits in the last byte.
Browse files Browse the repository at this point in the history
This returns the number of used bits in the last byte of a stream
that has just been compressed with deflate.
  • Loading branch information
madler committed Jul 2, 2024
1 parent 534864b commit e011d8c
Show file tree
Hide file tree
Showing 17 changed files with 239 additions and 178 deletions.
11 changes: 7 additions & 4 deletions contrib/vstudio/vc10/zlibvc.def
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LIBRARY
; zlib data compression and ZIP file I/O library

VERSION 1.3
VERSION 1.3

EXPORTS
adler32 @1
Expand Down Expand Up @@ -153,6 +153,9 @@ EXPORTS
crc32_z @175

; zlib1 v1.2.12 added:
crc32_combine_gen @176
crc32_combine_gen64 @177
crc32_combine_op @178
crc32_combine_gen @176
crc32_combine_gen64 @177
crc32_combine_op @178

; zlib1 v1.3.2 added:
deflateUsed @179
11 changes: 7 additions & 4 deletions contrib/vstudio/vc11/zlibvc.def
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LIBRARY
; zlib data compression and ZIP file I/O library

VERSION 1.3
VERSION 1.3

EXPORTS
adler32 @1
Expand Down Expand Up @@ -153,6 +153,9 @@ EXPORTS
crc32_z @175

; zlib1 v1.2.12 added:
crc32_combine_gen @176
crc32_combine_gen64 @177
crc32_combine_op @178
crc32_combine_gen @176
crc32_combine_gen64 @177
crc32_combine_op @178

; zlib1 v1.3.2 added:
deflateUsed @179
11 changes: 7 additions & 4 deletions contrib/vstudio/vc12/zlibvc.def
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LIBRARY
; zlib data compression and ZIP file I/O library

VERSION 1.3
VERSION 1.3

EXPORTS
adler32 @1
Expand Down Expand Up @@ -153,6 +153,9 @@ EXPORTS
crc32_z @175

; zlib1 v1.2.12 added:
crc32_combine_gen @176
crc32_combine_gen64 @177
crc32_combine_op @178
crc32_combine_gen @176
crc32_combine_gen64 @177
crc32_combine_op @178

; zlib1 v1.3.2 added:
deflateUsed @179
11 changes: 7 additions & 4 deletions contrib/vstudio/vc14/zlibvc.def
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LIBRARY
; zlib data compression and ZIP file I/O library

VERSION 1.3
VERSION 1.3

EXPORTS
adler32 @1
Expand Down Expand Up @@ -153,6 +153,9 @@ EXPORTS
crc32_z @175

; zlib1 v1.2.12 added:
crc32_combine_gen @176
crc32_combine_gen64 @177
crc32_combine_op @178
crc32_combine_gen @176
crc32_combine_gen64 @177
crc32_combine_op @178

; zlib1 v1.3.2 added:
deflateUsed @179
Loading

0 comments on commit e011d8c

Please sign in to comment.