类:Options
\Class: Options
版本历史
| 版本 | 变更 |
|---|---|
| v14.5.0, v12.19.0 | 现在支持 |
| v9.4.0 | 选项 |
| v8.0.0 | 选项 |
| v5.11.0 | 现在支持 |
| v0.11.1 | 新增于: v0.11.1 |
每个基于 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_FLUSH\
flush<integer> Default:zlib.constants.Z_NO_FLUSH -
finishFlush<integer> 默认值:zlib.constants.Z_FINISH\
finishFlush<integer> Default:zlib.constants.Z_FINISH -
chunkSize<integer> 默认值:16 * 1024\
chunkSize<integer> Default:16 * 1024 -
windowBits<integer> -
level<integer> (仅压缩)\
level<integer> (compression only) -
memLevel<integer> (仅压缩)\
memLevel<integer> (compression only) -
strategy<integer> (仅压缩)\
strategy<integer> (compression only) -
dictionary<Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> (仅 deflate/inflate,默认为空字典)\
dictionary<Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> (deflate/inflate only, empty dictionary by default) -
info<boolean> (如果是true,则返回带有buffer和engine的对象。)\
info<boolean> (Iftrue, returns an object withbufferandengine.) -
maxOutputLength<integer> 使用 方便的方法 时限制输出大小。默认值:buffer.kMaxLength\
maxOutputLength<integer> Limits output size when using convenience methods. Default:buffer.kMaxLength
有关更多信息,请参阅 deflateInit2 和 inflateInit2 文档。
\See the deflateInit2 and inflateInit2 documentation for more
information.