Options 类
每个基于 zlib 的类都有一个 options 对象。
不需要任何选项。
某些选项仅在压缩时相关,而被解压缩类忽略。
flush<integer> 默认值:zlib.constants.Z_NO_FLUSHfinishFlush<integer> 默认值:zlib.constants.Z_FINISHchunkSize<integer> 默认值:16 * 1024windowBits<integer>level<integer> (仅压缩)memLevel<integer> (仅压缩)strategy<integer> (仅压缩)dictionary<Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> (仅 deflate/inflate,默认情况下为空字典)info<boolean> (如果是true,则返回具有buffer和engine的对象。)maxOutputLength<integer> 使用便捷方法时限制输出大小。 默认值:buffer.kMaxLength
有关更多信息,请参阅 deflateInit2 和 inflateInit2 文档。
Each zlib-based class takes an options object. No options are required.
Some options are only relevant when compressing and are ignored by the decompression classes.
flush<integer> Default:zlib.constants.Z_NO_FLUSHfinishFlush<integer> Default:zlib.constants.Z_FINISHchunkSize<integer> Default:16 * 1024windowBits<integer>level<integer> (compression only)memLevel<integer> (compression only)strategy<integer> (compression only)dictionary<Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> (deflate/inflate only, empty dictionary by default)info<boolean> (Iftrue, returns an object withbufferandengine.)maxOutputLength<integer> Limits output size when using convenience methods. Default:buffer.kMaxLength
See the deflateInit2 and inflateInit2 documentation for more
information.