Improve help text

This commit is contained in:
gamblor21 2022-04-02 09:19:30 -05:00
parent 0d3f45bef8
commit 161c992fa0

View File

@ -53,12 +53,20 @@
//| size used during compression (8-15, the dictionary size is power of 2 of //| size used during compression (8-15, the dictionary size is power of 2 of
//| that value). Additionally, if value is positive, *data* is assumed to be //| that value). Additionally, if value is positive, *data* is assumed to be
//| zlib stream (with zlib header). Otherwise, if it's negative, it's assumed //| zlib stream (with zlib header). Otherwise, if it's negative, it's assumed
//| to be raw DEFLATE stream. *bufsize* parameter is for compatibility with //| to be raw DEFLATE stream.
//| CPython and is ignored.
//| //|
//| :param ~bytes data: data to be decompressed //| The wbits parameter controls the size of the history buffer (or “window size”), and what header
//| :param ~int wbits: DEFLATE dictionary window size used during compression //| and trailer format is expected.
//| :param ~int bufsize: ignored for compatibility with CPython only //|
//| Common wbits values:
//|
//| * To decompress deflate format, use wbits = -15
//| * To decompress zlib format, use wbits = 15
//| * To decompress gzip format, use wbits = 31
//|
//| :param bytes data: data to be decompressed
//| :param int wbits: DEFLATE dictionary window size used during compression. See above.
//| :param int bufsize: ignored for compatibility with CPython only
//| """ //| """
//| ... //| ...
//| //|