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

x/willow/src/store/storage/kv/key_codec/kv_key_codec.ts

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

Functions

pack() -- the main entry point Encode the specified item or array of items into a buffer. pack(x) is equivalent to pack([x]) if x is not itself an array. Packing single items this way is also slightly more efficient.

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