类:Options
【Class: Options】
每个基于 zlib 的类都接受一个 options 对象。无需提供选项。
【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> 默认值: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>(仅限压缩/解压,默认空字典)info<boolean>(如果为true,返回一个包含buffer和engine的对象。)maxOutputLength<integer> 在使用 便捷方法 时限制输出大小。默认值:buffer.kMaxLength
查看更多信息,请参阅 deflateInit2 和 inflateInit2 文档。
【See the deflateInit2 and inflateInit2 documentation for more
information.】