Function getDictIDFromFrame

  • Returns the dictionary ID recorded in a Zstandard frame.

    Parameters

    • frameBuf: Uint8Array

      Buffer containing a Zstandard frame

    Returns number

    The dictionary ID, or 0 if the frame header doesn't include one (or if the buffer doesn't contain a valid frame header)