Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kwik/deps.ts>msgpack.decode

Kwik is a deno database using messagepack files.
Go to Latest
function msgpack.decode
Re-export
import { msgpack } from "https://deno.land/x/kwik@v1.2.3/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