每一个类都有一个 options
对象。
所有的选项都不是必需的。
注意一些选项只与压缩相关,会被解压类忽视。
flush
{integer} 默认值:zlib.constants.Z_NO_FLUSH
。finishFlush
{integer} 默认值:zlib.constants.Z_FINISH
。chunkSize
{integer} 默认值:16 * 1024
。windowBits
{integer}level
{integer} (compression only)memLevel
{integer} (compression only)strategy
{integer} (compression only)dictionary
{Buffer|TypedArray|DataView|ArrayBuffer} (只能是 deflate/inflate,默认是空目录)。info
{boolean} (如果为true
,则返回一个包含buffer
和engine
的对象)。maxOutputLength
{integer} Limits output size when using [convenience methods][]. Default: [buffer.kMaxLength
][]
更多信息请查阅 [deflateInit2
和 inflateInit2
][deflateInit2
and inflateInit2
] 文档。