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

std/msgpack/decode.ts>decode

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function decode
import { decode } from "https://deno.land/std@0.199.0/msgpack/decode.ts";

Decode a value from the MessagePack binary format.

Examples

Example 1

import { decode } from "https://deno.land/std@0.199.0/msgpack/decode.ts";

const encoded = Uint8Array.of(1, 2, 3)

console.log(decode(encoded))

Parameters

uint8: Uint8Array