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

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

A Willow Data Model and Willow General Purpose Sync protocol implementation in TypeScript.
Latest
function unpack
import { unpack } from "https://deno.land/x/willow@0.3.5/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.