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

Function decompress

  • decompress(
        data: Uint8Array,
        opts: AsyncInflateOptions,
        cb: FlateCallback,
    ): AsyncTerminable
  • Asynchrononously expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format

    Parameters

    • data: Uint8Array

      The data to decompress

    • opts: AsyncInflateOptions

      The decompression options

    • cb: FlateCallback

      The function to be called upon decompression completion

    Returns AsyncTerminable

    A function that can be used to immediately terminate the decompression

  • decompress(data: Uint8Array, cb: FlateCallback): AsyncTerminable
  • Asynchrononously expands compressed GZIP, Zlib, or raw DEFLATE data, automatically detecting the format

    Parameters

    • data: Uint8Array

      The data to decompress

    • cb: FlateCallback

      The function to be called upon decompression completion

    Returns AsyncTerminable

    A function that can be used to immediately terminate the decompression

Settings

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