Commit graph

58 commits

Author SHA1 Message Date
Alex Kocharin
25a8b18c5d Update high water mark in deflate_stored.
7d9c9d410a
2022-06-10 20:10:56 +03:00
Alex Kocharin
91a1be15c2 Fix deflate stored bug when pulling last block from window.
4c7c907683
2022-06-10 20:10:56 +03:00
Alex Kocharin
14eb66909b Fix bug in deflate_stored() for zero-length input.
bc5503b224
2022-06-10 20:10:56 +03:00
Alex Kocharin
49d5060e87 Speed up deflation for level 0 (storing).
9dc5a8585f
2022-06-10 20:10:56 +03:00
Alex Kocharin
bee5019c40 Fix bugs in creating a very large gzip header.
9674807c82
2022-06-10 20:10:56 +03:00
Alex Kocharin
1154023108 Fix bug when level 0 used with Z_HUFFMAN or Z_RLE.
94575859cf
2022-06-10 20:10:56 +03:00
Alex Kocharin
9709958d84 Do a more thorough check of the state for every stream call.
b516b4bdd7
2022-06-10 20:10:56 +03:00
Alex Kocharin
d53e75c309 Reject a window size of 256 bytes if not using the zlib wrapper.
049578f0a1
2022-06-10 20:10:56 +03:00
Alex Kocharin
b07a436d39 Sync code with madler/zlib, cosmetic changes only
5370d99a2a
8a979f6c79
c901a34c92
7096424f23
a456d898bb
21c66cd5ac
ee7d7b5dda
37ed2112a1
723e928b84
8678871f18
2022-06-10 20:05:06 +03:00
Vitaly Puzrin
d0382badcc Fix esm build named exports 2020-11-19 02:37:53 +03:00
Vitaly Puzrin
677ba487ed Move hasher to separate function 2020-11-12 22:45:21 +03:00
Vitaly Puzrin
505e36d9f0 Move to es6 2020-11-08 22:23:56 +03:00
Vitaly Puzrin
f5c3c29848 Removed Array support 2020-11-07 19:52:58 +03:00
Vitaly Puzrin
f1872b3459 eslint bump + CS tweaks 2018-11-29 20:13:39 +03:00
Vitaly Puzrin
eaead04de3 More formal zlib attribution and related changes 2017-03-26 18:29:30 +03:00
Kirill Efimov
4a07e05823 Fixed wrong offset for d_buf (closes #78) 2016-07-21 14:45:54 +03:00
Vitaly Puzrin
d884686332 minor code cleanup 2016-03-31 06:26:10 +03:00
dignifiedquire
ffaf7c8252 Implement dictionary handling.
This adds the methods

- `deflateSetDictionary`
- `inflateSetDictionary`

as well as calling `setDictionary` at the right point when passing
the a `dictionary` option to one of

- `pako.deflate`
- `new pako.Deflate`
- `pako.inflate`
- `new pako.Inflate`
2016-03-30 15:44:16 -04:00
Vitaly Puzrin
500bc5d042 Coding Style & eslint rules update 2016-02-17 10:37:31 +03:00
Vitaly Puzrin
cff11fc91b Replaced jshint with eslint & updated CS 2015-03-24 05:28:20 +03:00
Vitaly Puzrin
a4d7bdef8d docs/comments update 2014-04-18 02:56:41 +04:00
nik
8bea7480aa refactoring: rename input/output buffer indexes to next_in/next_out 2014-04-17 18:47:18 -03:00
nik
83859e524b add deflate coverage tests 2014-04-16 19:22:28 -03:00
Vitaly Puzrin
b165c9c945 Deflate: added custom gzip headers support 2014-04-13 20:45:13 +04:00
Vitaly Puzrin
ca1374eb05 Moved utilities to separate folder 2014-04-13 13:45:12 +04:00
Vitaly Puzrin
20b0318601 Cleanup & comments 2014-04-13 13:20:58 +04:00
nik
2fcb571a68 fix inflate: _tr_tally function argument calculation 2014-03-19 23:18:22 -03:00
Vitaly Puzrin
6cb53e5b51 Doc fixes & minor polish 2014-03-14 02:04:31 +04:00
nik
9f495b8b13 add message to ZStream on deflate error 2014-03-13 18:24:00 -03:00
Vitaly Puzrin
7b2e5da8a9 Rewritten utils unterfaces & internals 2014-03-13 10:45:14 +04:00
Vitaly Puzrin
0b21c5b402 readme update 2014-02-24 08:53:24 +04:00
Vitaly Puzrin
e78abad260 Reorganized constants - move locally as much as possible 2014-02-24 06:17:36 +04:00
Vitaly Puzrin
5cabad0d48 added coverage generation & improved tests 2014-02-21 19:06:31 +04:00
Vitaly Puzrin
371292dfef Closed TODOs and added comments 2014-02-21 11:42:42 +04:00
Vitaly Puzrin
9e18b276cd Fixed RLE strategy 2014-02-19 22:17:44 +04:00
Vitaly Puzrin
917d665a4c reduced TODOs count 2014-02-19 20:00:44 +04:00
nik
2434495874 fix flush block in deflate_slow & enable windowBits test 2014-02-19 10:15:20 -03:00
Vitaly Puzrin
0d4a1bcd64 typo fixes 2014-02-19 09:52:17 +04:00
Vitaly Puzrin
1a64fa47f5 Tweaked trees init 2014-02-19 06:18:12 +04:00
nik
99c8fa83b5 fix: return correct block state in deflate_stored & enable tests for level 0 2014-02-18 22:30:46 -03:00
Vitaly Puzrin
fcd6db56b7 cleared unnecessary var casts 2014-02-18 07:03:13 +04:00
Vitaly Puzrin
1a32aea787 multiple tweaks & comments 2014-02-18 05:54:09 +04:00
Vitaly Puzrin
822310eb43 Removed float ops & added comments 2014-02-18 04:01:10 +04:00
nik
202d870375 some fixes 2014-02-17 18:53:37 -03:00
Vitaly Puzrin
90e1a6ff31 code cleanup 2014-02-17 10:23:13 +04:00
Vitaly Puzrin
f643adbbcf added the rest or deflate_* functions 2014-02-17 10:11:57 +04:00
nik
7644f9f3db add initialization l_buf and d_buf 2014-02-16 23:54:54 -03:00
Vitaly Puzrin
42237287cb started deflate_fast() implementation 2014-02-16 21:45:40 +04:00
Vitaly Puzrin
285e2d4cff Added gzip interface (without custom headers support) 2014-02-15 09:11:24 +04:00
Vitaly Puzrin
3288124672 deflate_state reformatted 2014-02-15 00:52:33 +04:00