Function decode

  • It decodes a MessagePack-encoded buffer.

    This is a synchronous decoding function. See other variants for asynchronous decoding: decodeAsync(), decodeStream(), and decodeArrayStream()

    Parameters

    • buffer: ArrayBuffer | ArrayLike<number>
    • options: DecodeOptions = defaultDecodeOptions

    Returns unknown