Function: deflateSync()

May 16, 2026 ยท View on GitHub

fflate


Function: deflateSync()

deflateSync(data: Uint8Array, opts?: DeflateOptions): Uint8Array<ArrayBuffer>

Compresses data with DEFLATE without any wrapper

Parameters

data

Uint8Array

The data to compress

opts?

DeflateOptions

The compression options

Returns

Uint8Array<ArrayBuffer>

The deflated version of the data

Contents

  1. 1Parameters
  2. 1.1data
  3. 1.2opts?
  4. 2Returns