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

x/willow/src/store/storage/kv/key_codec/encoder.ts>pack

A Willow Data Model and Willow General Purpose Sync protocol implementation in TypeScript.
Latest
function pack
import { pack } from "https://deno.land/x/willow@0.3.5/src/store/storage/kv/key_codec/encoder.ts";

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.

Returns

Uint8Array