File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 53
53
//| size used during compression (8-15, the dictionary size is power of 2 of
54
54
//| that value). Additionally, if value is positive, *data* is assumed to be
55
55
//| zlib stream (with zlib header). Otherwise, if it's negative, it's assumed
56
- //| to be raw DEFLATE stream. *bufsize* parameter is for compatibility with
57
- //| CPython and is ignored.
56
+ //| to be raw DEFLATE stream.
58
57
//|
59
- //| :param ~bytes data: data to be decompressed
60
- //| :param ~int wbits: DEFLATE dictionary window size used during compression
61
- //| :param ~int bufsize: ignored for compatibility with CPython only
58
+ //| The wbits parameter controls the size of the history buffer (or “window size”), and what header
59
+ //| and trailer format is expected.
60
+ //|
61
+ //| Common wbits values:
62
+ //|
63
+ //| * To decompress deflate format, use wbits = -15
64
+ //| * To decompress zlib format, use wbits = 15
65
+ //| * To decompress gzip format, use wbits = 31
66
+ //|
67
+ //| :param bytes data: data to be decompressed
68
+ //| :param int wbits: DEFLATE dictionary window size used during compression. See above.
69
+ //| :param int bufsize: ignored for compatibility with CPython only
62
70
//| """
63
71
//| ...
64
72
//|
You can’t perform that action at this time.
0 commit comments