TyphonJS Runtime Library (FVTT) 0.3.0
  • #runtime/data/compress
  • deflate

Function deflate

  • deflate(
        data: Uint8Array,
        opts: AsyncDeflateOptions,
        cb: FlateCallback,
    ): AsyncTerminable
  • Asynchronously compresses data with DEFLATE without any wrapper

    Parameters

    • data: Uint8Array

      The data to compress

    • opts: AsyncDeflateOptions

      The compression options

    • cb: FlateCallback

      The function to be called upon compression completion

    Returns AsyncTerminable

    A function that can be used to immediately terminate the compression

  • deflate(data: Uint8Array, cb: FlateCallback): AsyncTerminable
  • Asynchronously compresses data with DEFLATE without any wrapper

    Parameters

    • data: Uint8Array

      The data to compress

    • cb: FlateCallback

      The function to be called upon compression completion

    Returns AsyncTerminable

Settings

Member Visibility
Demo - Essential Svelte ESM
TyphonJS Runtime Library (FVTT) 0.3.0