Exports
[<Class>]
type Exports =
static member Z_ASCII: float
static member Z_BEST_COMPRESSION: float
static member Z_BEST_SPEED: float
static member Z_BINARY: float
static member Z_BLOCK: float
static member Z_BUF_ERROR: float
static member Z_DATA_ERROR: float
static member Z_DEFAULT_COMPRESSION: float
static member Z_DEFAULT_STRATEGY: float
static member Z_DEFLATED: float
static member Z_ERRNO: float
static member Z_FILTERED: float
static member Z_FINISH: float
static member Z_FIXED: float
static member Z_FULL_FLUSH: float
static member Z_HUFFMAN_ONLY: float
static member Z_MEM_ERROR: float
static member Z_NEED_DICT: float
static member Z_NO_COMPRESSION: float
static member Z_NO_FLUSH: float
static member Z_OK: float
static member Z_PARTIAL_FLUSH: float
static member Z_RLE: float
static member Z_STREAM_END: float
static member Z_STREAM_ERROR: float
static member Z_SYNC_FLUSH: float
static member Z_TEXT: float
static member Z_UNKNOWN: float
static member Z_VERSION_ERROR: float
static member brotliCompress: BrotliCompress
static member brotliDecompress: BrotliDecompress
static member constants: Constants8
static member deflate: Deflate
static member deflateRaw: DeflateRaw
static member gunzip: Gunzip
static member gzip: Gzip
static member inflate: Inflate
static member inflateRaw: InflateRaw
static member unzip: Unzip
static member zstdCompress: ZstdCompress
static member zstdDecompress: ZstdDecompress
static member BrotliCompress (?options: BrotliOptions) : BrotliCompress
static member BrotliDecompress (?options: BrotliOptions) : BrotliDecompress
static member Deflate (?options: ZlibOptions) : Deflate
static member DeflateRaw (?options: ZlibOptions) : DeflateRaw
static member Gunzip (?options: ZlibOptions) : Gunzip
static member Gzip (?options: ZlibOptions) : Gzip
static member Inflate (?options: ZlibOptions) : Inflate
static member InflateRaw (?options: ZlibOptions) : InflateRaw
static member Unzip (?options: ZlibOptions) : Unzip
static member ZstdCompress (?options: ZstdOptions) : ZstdCompress
static member ZstdDecompress (?options: ZstdOptions) : ZstdDecompress
static member brotliCompressSync (buf: InputType, ?options: BrotliOptions) : NonSharedBuffer
static member brotliDecompressSync (buf: InputType, ?options: BrotliOptions) : NonSharedBuffer
static member crc32 (data: BinaryLike, ?value: float) : float
static member createBrotliCompress (?options: BrotliOptions) : BrotliCompress
static member createBrotliDecompress (?options: BrotliOptions) : BrotliDecompress
static member createDeflate (?options: ZlibOptions) : Deflate
static member createDeflateRaw (?options: ZlibOptions) : DeflateRaw
static member createGunzip (?options: ZlibOptions) : Gunzip
static member createGzip (?options: ZlibOptions) : Gzip
static member createInflate (?options: ZlibOptions) : Inflate
static member createInflateRaw (?options: ZlibOptions) : InflateRaw
static member createUnzip (?options: ZlibOptions) : Unzip
static member createZstdCompress (?options: ZstdOptions) : ZstdCompress
static member createZstdDecompress (?options: ZstdOptions) : ZstdDecompress
static member deflateRawSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member deflateSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member gunzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member gzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member inflateRawSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member inflateSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member unzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member zstdCompressSync (buf: InputType, ?options: ZstdOptions) : NonSharedBuffer
static member zstdDecompressSync (buf: InputType, ?options: ZstdOptions) : NonSharedBuffer| Assembly | Xantham.Fable.Node |
| Attributes | [<Erase>] |
The package's value exports, each bound to its import.
Properties
static member constants: Constants8Methods
static member BrotliCompress (?options: BrotliOptions) : BrotliCompress
static member BrotliCompress (?options: BrotliOptions) : BrotliCompress@since v10.16.0
static member BrotliDecompress (?options: BrotliOptions) : BrotliDecompress
static member BrotliDecompress (?options: BrotliOptions) : BrotliDecompress@since v10.16.0
static member Deflate (?options: ZlibOptions) : Deflate
static member Deflate (?options: ZlibOptions) : Deflate@since v0.5.8
static member DeflateRaw (?options: ZlibOptions) : DeflateRaw
static member DeflateRaw (?options: ZlibOptions) : DeflateRaw@since v0.5.8
static member Gunzip (?options: ZlibOptions) : Gunzip
static member Gunzip (?options: ZlibOptions) : Gunzip@since v0.5.8
static member Gzip (?options: ZlibOptions) : Gzip
static member Gzip (?options: ZlibOptions) : Gzip@since v0.5.8
static member Inflate (?options: ZlibOptions) : Inflate
static member Inflate (?options: ZlibOptions) : Inflate@since v0.5.8
static member InflateRaw (?options: ZlibOptions) : InflateRaw
static member InflateRaw (?options: ZlibOptions) : InflateRaw@since v0.5.8
static member Unzip (?options: ZlibOptions) : Unzip
static member Unzip (?options: ZlibOptions) : Unzip@since v0.5.8
static member ZstdCompress (?options: ZstdOptions) : ZstdCompress
static member ZstdCompress (?options: ZstdOptions) : ZstdCompress@since v22.15.0
static member ZstdDecompress (?options: ZstdOptions) : ZstdDecompress
static member ZstdDecompress (?options: ZstdOptions) : ZstdDecompress@since v22.15.0
static member brotliCompressSync (buf: InputType, ?options: BrotliOptions) : NonSharedBuffer
static member brotliCompressSync (buf: InputType, ?options: BrotliOptions) : NonSharedBufferCompress a chunk of data with BrotliCompress.
@since v11.7.0, v10.16.0
static member brotliDecompressSync (buf: InputType, ?options: BrotliOptions) : NonSharedBuffer
static member brotliDecompressSync (buf: InputType, ?options: BrotliOptions) : NonSharedBufferDecompress a chunk of data with BrotliDecompress.
@since v11.7.0, v10.16.0
static member crc32 (data: BinaryLike, ?value: float) : float
static member crc32 (data: BinaryLike, ?value: float) : floatComputes a 32-bit Cyclic Redundancy Check checksum of data. If value is specified, it is used as the starting value of the checksum, otherwise, 0 is used as the starting value.
@since v22.2.0
| Parameter | |
|---|---|
data | When data is a string, it will be encoded as UTF-8 before being used for computation. |
value | An optional starting value. It must be a 32-bit unsigned integer. |
Returns. A 32-bit unsigned integer containing the checksum.
static member createBrotliCompress (?options: BrotliOptions) : BrotliCompress
static member createBrotliCompress (?options: BrotliOptions) : BrotliCompressCreates and returns a new BrotliCompress object.
@since v11.7.0, v10.16.0
static member createBrotliDecompress (?options: BrotliOptions) : BrotliDecompress
static member createBrotliDecompress (?options: BrotliOptions) : BrotliDecompressCreates and returns a new BrotliDecompress object.
@since v11.7.0, v10.16.0
static member createDeflate (?options: ZlibOptions) : Deflate
static member createDeflate (?options: ZlibOptions) : DeflateCreates and returns a new Deflate object.
@since v0.5.8
static member createDeflateRaw (?options: ZlibOptions) : DeflateRaw
static member createDeflateRaw (?options: ZlibOptions) : DeflateRawCreates and returns a new DeflateRaw object.
An upgrade of zlib from 1.2.8 to 1.2.11 changed behavior when windowBits is set to 8 for raw deflate streams. zlib would automatically set windowBits to 9 if was initially set to 8. Newer versions of zlib will throw an exception, so Node.js restored the original behavior of upgrading a value of 8 to 9, since passing windowBits = 9 to zlib actually results in a compressed stream that effectively uses an 8-bit window only.
@since v0.5.8
static member createGunzip (?options: ZlibOptions) : Gunzip
static member createGunzip (?options: ZlibOptions) : GunzipCreates and returns a new Gunzip object.
@since v0.5.8
static member createGzip (?options: ZlibOptions) : Gzip
static member createGzip (?options: ZlibOptions) : GzipCreates and returns a new Gzip object. See example.
@since v0.5.8
static member createInflate (?options: ZlibOptions) : Inflate
static member createInflate (?options: ZlibOptions) : InflateCreates and returns a new Inflate object.
@since v0.5.8
static member createInflateRaw (?options: ZlibOptions) : InflateRaw
static member createInflateRaw (?options: ZlibOptions) : InflateRawCreates and returns a new InflateRaw object.
@since v0.5.8
static member createUnzip (?options: ZlibOptions) : Unzip
static member createUnzip (?options: ZlibOptions) : UnzipCreates and returns a new Unzip object.
@since v0.5.8
static member createZstdCompress (?options: ZstdOptions) : ZstdCompress
static member createZstdCompress (?options: ZstdOptions) : ZstdCompressCreates and returns a new ZstdCompress object.
@since v22.15.0
static member createZstdDecompress (?options: ZstdOptions) : ZstdDecompress
static member createZstdDecompress (?options: ZstdOptions) : ZstdDecompressCreates and returns a new ZstdDecompress object.
@since v22.15.0
static member deflateRawSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member deflateRawSync (buf: InputType, ?options: ZlibOptions) : NonSharedBufferCompress a chunk of data with DeflateRaw.
@since v0.11.12
static member deflateSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member deflateSync (buf: InputType, ?options: ZlibOptions) : NonSharedBufferCompress a chunk of data with Deflate.
@since v0.11.12
static member gunzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member gunzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBufferDecompress a chunk of data with Gunzip.
@since v0.11.12
static member gzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member gzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBufferCompress a chunk of data with Gzip.
@since v0.11.12
static member inflateRawSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member inflateRawSync (buf: InputType, ?options: ZlibOptions) : NonSharedBufferDecompress a chunk of data with InflateRaw.
@since v0.11.12
static member inflateSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member inflateSync (buf: InputType, ?options: ZlibOptions) : NonSharedBufferDecompress a chunk of data with Inflate.
@since v0.11.12
static member unzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer
static member unzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBufferDecompress a chunk of data with Unzip.
@since v0.11.12
static member zstdCompressSync (buf: InputType, ?options: ZstdOptions) : NonSharedBuffer
static member zstdCompressSync (buf: InputType, ?options: ZstdOptions) : NonSharedBufferCompress a chunk of data with ZstdCompress.
@since v22.15.0
static member zstdDecompressSync (buf: InputType, ?options: ZstdOptions) : NonSharedBuffer
static member zstdDecompressSync (buf: InputType, ?options: ZstdOptions) : NonSharedBufferDecompress a chunk of data with ZstdDecompress.
@since v22.15.0