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

x/willow/src/store/storage/kv/key_codec/accumulator.ts>Accumulator

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

CodecBuffer class

Properties

nextByte: number

The next available byte (tail-pointer)

Methods

appendBuffer(buf: Uint8Array)

add a buffer to the accumulator

appendByte(val: number)

add a byte to the accumulator

extract the encoded bytes

requires(bytesRequired: number)

check fit - expand accumulator as required