diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2024-07-01 19:24:01 -0500 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-07-01 19:34:40 -0500 |
commit | e011d8c164402cbb1baf92533dfb4f933ec08fee (patch) | |
tree | 7a28431c3c5caf885f07deac6718787b36f2231c /os400/zlib.inc | |
parent | 534864bccd78812648ad1beaccdeec7c9d47aeef (diff) | |
download | zlib-e011d8c164402cbb1baf92533dfb4f933ec08fee.tar.gz zlib-e011d8c164402cbb1baf92533dfb4f933ec08fee.tar.bz2 zlib-e011d8c164402cbb1baf92533dfb4f933ec08fee.zip |
Add deflateUsed() function to get the used bits in the last byte.
This returns the number of used bits in the last byte of a stream
that has just been compressed with deflate.
Diffstat (limited to 'os400/zlib.inc')
-rw-r--r-- | os400/zlib.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os400/zlib.inc b/os400/zlib.inc index 36db89e..e9352fe 100644 --- a/os400/zlib.inc +++ b/os400/zlib.inc | |||
@@ -371,6 +371,10 @@ | |||
371 | D pending 10U 0 Pending bytes | 371 | D pending 10U 0 Pending bytes |
372 | D bits 10I 0 Pending bits | 372 | D bits 10I 0 Pending bits |
373 | * | 373 | * |
374 | D deflateUsed PR 10I 0 extproc('deflateUsed') Get used bits | ||
375 | D strm like(z_stream) Compression stream | ||
376 | D bits 10I 0 Used bits | ||
377 | * | ||
374 | D deflatePrime PR 10I 0 extproc('deflatePrime') Change level & strat | 378 | D deflatePrime PR 10I 0 extproc('deflatePrime') Change level & strat |
375 | D strm like(z_stream) Compression stream | 379 | D strm like(z_stream) Compression stream |
376 | D bits 10I 0 value # of bits to insert | 380 | D bits 10I 0 value # of bits to insert |