Skip to content

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
AssemblyXantham.Fable.Node
Attributes[<Erase>]

The package's value exports, each bound to its import.

Properties

static member Z_ASCII: float

@deprecated

static member Z_BEST_COMPRESSION: float

@deprecated Use constants.Z_BEST_COMPRESSION

static member Z_BEST_SPEED: float

@deprecated Use constants.Z_BEST_SPEED

static member Z_BINARY: float

@deprecated

static member Z_BLOCK: float

@deprecated Use constants.Z_BLOCK

static member Z_BUF_ERROR: float

@deprecated Use constants.Z_BUF_ERROR

static member Z_DATA_ERROR: float

@deprecated Use constants.Z_DATA_ERROR

static member Z_DEFAULT_COMPRESSION: float

@deprecated Use constants.Z_DEFAULT_COMPRESSION

static member Z_DEFAULT_STRATEGY: float

@deprecated Use constants.Z_DEFAULT_STRATEGY

static member Z_DEFLATED: float

@deprecated

static member Z_ERRNO: float

@deprecated Use constants.Z_ERRNO

static member Z_FILTERED: float

@deprecated Use constants.Z_FILTERED

static member Z_FINISH: float

@deprecated Use constants.Z_FINISH

static member Z_FIXED: float

@deprecated Use constants.Z_FIXED

static member Z_FULL_FLUSH: float

@deprecated Use constants.Z_FULL_FLUSH

static member Z_HUFFMAN_ONLY: float

@deprecated Use constants.Z_HUFFMAN_ONLY

static member Z_MEM_ERROR: float

@deprecated Use constants.Z_MEM_ERROR

static member Z_NEED_DICT: float

@deprecated Use constants.Z_NEED_DICT

static member Z_NO_COMPRESSION: float

@deprecated Use constants.Z_NO_COMPRESSION

static member Z_NO_FLUSH: float

@deprecated Use constants.Z_NO_FLUSH

static member Z_OK: float

@deprecated Use constants.Z_OK

static member Z_PARTIAL_FLUSH: float

@deprecated Use constants.Z_PARTIAL_FLUSH

static member Z_RLE: float

@deprecated Use constants.Z_RLE

static member Z_STREAM_END: float

@deprecated Use constants.Z_STREAM_END

static member Z_STREAM_ERROR: float

@deprecated Use constants.Z_STREAM_ERROR

static member Z_SYNC_FLUSH: float

@deprecated Use constants.Z_SYNC_FLUSH

static member Z_TEXT: float

@deprecated

static member Z_UNKNOWN: float

@deprecated

static member Z_VERSION_ERROR: float

@deprecated Use constants.Z_VERSION_ERROR

static member brotliCompress: BrotliCompress

@since v11.7.0, v10.16.0

static member brotliDecompress: BrotliDecompress

@since v11.7.0, v10.16.0

static member constants: Constants8
static member deflate: Deflate

@since v0.6.0

static member deflateRaw: DeflateRaw

@since v0.6.0

static member gunzip: Gunzip

@since v0.6.0

static member gzip: Gzip

@since v0.6.0

static member inflate: Inflate

@since v0.6.0

static member inflateRaw: InflateRaw

@since v0.6.0

static member unzip: Unzip

@since v0.6.0

static member zstdCompress: ZstdCompress

@since v22.15.0

static member zstdDecompress: ZstdDecompress

@since v22.15.0

Methods

static member BrotliCompress (?options: BrotliOptions) : BrotliCompress

@since v10.16.0

static member BrotliDecompress (?options: BrotliOptions) : BrotliDecompress

@since v10.16.0

static member Deflate (?options: ZlibOptions) : Deflate

@since v0.5.8

static member DeflateRaw (?options: ZlibOptions) : DeflateRaw

@since v0.5.8

static member Gunzip (?options: ZlibOptions) : Gunzip

@since v0.5.8

static member Gzip (?options: ZlibOptions) : Gzip

@since v0.5.8

static member Inflate (?options: ZlibOptions) : Inflate

@since v0.5.8

static member InflateRaw (?options: ZlibOptions) : InflateRaw

@since v0.5.8

static member Unzip (?options: ZlibOptions) : Unzip

@since v0.5.8

static member ZstdCompress (?options: ZstdOptions) : ZstdCompress

@since v22.15.0

static member ZstdDecompress (?options: ZstdOptions) : ZstdDecompress

@since v22.15.0

static member brotliCompressSync (buf: InputType, ?options: BrotliOptions) : NonSharedBuffer

Compress a chunk of data with BrotliCompress.

@since v11.7.0, v10.16.0

static member brotliDecompressSync (buf: InputType, ?options: BrotliOptions) : NonSharedBuffer

Decompress a chunk of data with BrotliDecompress.

@since v11.7.0, v10.16.0

static member crc32 (data: BinaryLike, ?value: float) : float

Computes 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
dataWhen data is a string, it will be encoded as UTF-8 before being used for computation.
valueAn 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

Creates and returns a new BrotliCompress object.

@since v11.7.0, v10.16.0

static member createBrotliDecompress (?options: BrotliOptions) : BrotliDecompress

Creates and returns a new BrotliDecompress object.

@since v11.7.0, v10.16.0

static member createDeflate (?options: ZlibOptions) : Deflate

Creates and returns a new Deflate object.

@since v0.5.8

static member createDeflateRaw (?options: ZlibOptions) : DeflateRaw

Creates 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

Creates and returns a new Gunzip object.

@since v0.5.8

static member createGzip (?options: ZlibOptions) : Gzip

Creates and returns a new Gzip object. See example.

@since v0.5.8

static member createInflate (?options: ZlibOptions) : Inflate

Creates and returns a new Inflate object.

@since v0.5.8

static member createInflateRaw (?options: ZlibOptions) : InflateRaw

Creates and returns a new InflateRaw object.

@since v0.5.8

static member createUnzip (?options: ZlibOptions) : Unzip

Creates and returns a new Unzip object.

@since v0.5.8

static member createZstdCompress (?options: ZstdOptions) : ZstdCompress

Creates and returns a new ZstdCompress object.

@since v22.15.0

static member createZstdDecompress (?options: ZstdOptions) : ZstdDecompress

Creates and returns a new ZstdDecompress object.

@since v22.15.0

static member deflateRawSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer

Compress a chunk of data with DeflateRaw.

@since v0.11.12

static member deflateSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer

Compress a chunk of data with Deflate.

@since v0.11.12

static member gunzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer

Decompress a chunk of data with Gunzip.

@since v0.11.12

static member gzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer

Compress a chunk of data with Gzip.

@since v0.11.12

static member inflateRawSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer

Decompress a chunk of data with InflateRaw.

@since v0.11.12

static member inflateSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer

Decompress a chunk of data with Inflate.

@since v0.11.12

static member unzipSync (buf: InputType, ?options: ZlibOptions) : NonSharedBuffer

Decompress a chunk of data with Unzip.

@since v0.11.12

static member zstdCompressSync (buf: InputType, ?options: ZstdOptions) : NonSharedBuffer

Compress a chunk of data with ZstdCompress.

@since v22.15.0

static member zstdDecompressSync (buf: InputType, ?options: ZstdOptions) : NonSharedBuffer

Decompress a chunk of data with ZstdDecompress.

@since v22.15.0