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

x/willow/src/store/storage/kv/key_codec/decoder.ts>unpack

Exploring Willow in the most efficient and sound programming language
Go to Latest
function unpack
import { unpack } from "https://deno.land/x/willow@0.2.1/src/store/storage/kv/key_codec/decoder.ts";

Unpack a buffer containing a kvKey back to its original array elements. This is the inverse of pack(), so unpack(pack(x)) == x.

Parameters

buf: Uint8Array

The buffer containing the data to be decoded.