Prepared dictionary for decompression.

Wraps ZSTD_DDict. The finalizer automatically calls ZSTD_freeDDict when this object is garbage collected.

Constructors

Methods

Constructors

  • Load a dictionary for decompression from the bytes in dictBuf.

    Wraps ZSTD_createDDict.

    Parameters

    • dictBuf: Uint8Array

    Returns DDict

Methods

  • Returns the ID for this dictionary.

    Wraps ZSTD_getDictID_fromDDict.

    Returns number

    The ID, or 0 if this is a non-standard/content-only dictionary