zstd-napi - v0.0.11
    Preparing search index...

    Class DDict

    Prepared dictionary for decompression.

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

    Index

    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