zlib.brotliCompressSync(buffer[, options])
新增于: v11.7.0, v10.16.0
-
buffer<Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> | <string> -
options<brotli options>
使用 BrotliCompress 压缩数据块。
\Compress a chunk of data with BrotliCompress.
buffer <Buffer> | <TypedArray> | <DataView> | <ArrayBuffer> | <string>
options <brotli options>
使用 BrotliCompress 压缩数据块。
\Compress a chunk of data with BrotliCompress.