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

    Module binding

    This module (imported as zstd-napi/binding) exposes a thin (but safe!) wrapper around the native Zstandard API. If you aren't trying to do something weird, use the high-level API instead.

    Native API functions that are associated with a data structure are methods on the wrapper class corresponding to that data structure. For example, many compression functions take a ZSTD_CCtx and can therefore be found on the CCtx class.

    The upstream Zstandard manual is the best source for understanding how to use this API. While this documentation tries to be helpful, it has only a small fraction of the information. Documentation for structures and functions within this module will mention the corresponding native names to enable cross-referencing. (Alas, it appears not to be possible to link to functions on that page...)

    Advanced API

    CParameter
    DParameter
    ResetDirective
    Strategy
    Bounds
    cParamGetBounds
    dParamGetBounds

    Dictionary

    CDict
    DDict
    getDictIDFromDict
    getDictIDFromFrame

    Other

    CCtx
    DCtx
    MAGIC_DICTIONARY
    MAGIC_SKIPPABLE_MASK
    MAGIC_SKIPPABLE_START
    MAGICNUMBER
    versionNumber
    versionString

    Simple API

    compress
    compressBound
    decompress
    defaultCLevel
    findFrameCompressedSize
    getFrameContentSize
    maxCLevel
    minCLevel

    Streaming

    EndDirective
    StreamResult
    cStreamInSize
    cStreamOutSize
    dStreamInSize
    dStreamOutSize