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

    Function decompress

    • Decompresses srcBuf into dstBuf.

      dstBuf must be large enough to fit the entire result. srcBuf must end on a frame boundary (no partial frames or other trailing data).

      Wraps ZSTD_decompress.

      Parameters

      • dstBuf: Uint8Array

        Output buffer for decompressed bytes

      • srcBuf: Uint8Array

        Data to decompress

      Returns number

      Number of decompressed bytes written to dstBuf

      This function is here for completeness, creating a DCtx and reusing it will give better performance than calling this repeatedly. The high-level decompress function will take care of this for you.