Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kwik/deps.ts>msgpack.decode

Kwik is a deno database using messagepack files.
Latest
function msgpack.decode
Re-export
import { msgpack } from "https://deno.land/x/kwik@v1.3.1/deps.ts";
const { decode } = msgpack;

It decodes a single MessagePack object in a buffer.

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

Type Parameters

optional
ContextType = undefined

Parameters

buffer: ArrayLike<number> | BufferSource
optional
options: DecodeOptions<SplitUndefined<ContextType>>

Returns

unknown