Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "snappy/decompress"

Index

Functions

decompress

  • decompress(src: Uint8Array, dst?: Uint8Array): Uint8Array
  • Decompresses src into dst and returns a subarray into dst containing decompressed data.

    The length of decompress data is read from src. If dst is smaller than it, the new appropriately sized dst is allocated and returned.

    Throws an error if input is corrupted.

    This is a bare block compression without any framing.

    Parameters

    • src: Uint8Array
    • Optional dst: Uint8Array

    Returns Uint8Array

decompressedLength

  • decompressedLength(src: Uint8Array): number
  • Reads decompressed length from src and returns it.

    Throws an error if the length is too large or the input is corrupted.

    Parameters

    • src: Uint8Array

    Returns number

Generated using TypeDoc