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

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

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