import { GrowingBytes } from "https://deno.land/x/willow_utils@0.8.0/src/encoding/growing_bytes.ts";
An array of growing bytes which can be awaited upon and pruned.
Properties
private
deferredUntilLength: [number, Deferred<Uint8Array>] | nullMethods
private
next(ofLength: number, relative: boolean): Promise<Uint8Array>nextAbsolute(length: number): Promise<Uint8Array>
Wait for the underyling Uint8Array to grow to at least the absolute given length.
nextRelative(length: number): Promise<Uint8Array>
Wait for the underyling Uint8Array to grow relative to the given length, regardless of the current length.
prune(length: number)
Prunes the array by the given bytelength.