Skip to main content
Module

std/msgpack/mod.ts>decode

The Deno Standard Library
Go to Latest
function decode
import { decode } from "https://deno.land/std@0.223.0/msgpack/mod.ts";

Decode a value from the MessagePack binary format.

Examples

Example 1

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

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

console.log(decode(encoded))

Parameters

uint8: Uint8Array