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

x/willow/deps.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/deps.ts";

Classes

An array of growing bytes which can be awaited upon and pruned.

Variables

Represents an open value for a range ending.

Functions

Return whether an area is fully included by another area.

Convert an Area to a Range3d.

Return the prefix shared by two Paths.

Returns the number of octets needed to store a number, along the lines of 8-bit, 16-bit, 32-bit, or 64-bit unsigned integers.

Concatenate the given arrays into a new Uint8Array.

Decode an Area relative to a known outer Area.

Decode a variable width integer. Uses the bytelength of the passed encoding to determine the compact width.

Decode bytes to an Entry.

Decodes a path.

Decodes a Path relative to another Path.

Decodes an encoded path (which is streaming in).

Decodes an UintMax unsigned integer,

Creates a Promise with the reject and resolve functions placed as methods on the promise object itself.

Encode an Area relative to known outer Area.

Encodes a given Uint8Array into RFC4648 base32 representation

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Encodes an integer using the smallest number of bytes possible.

Encodes the length of a Path.

Encode an Entry.

Encodes a path.

Encodes a Path relative to another Path.

Encodes a number as a UintMax, with Max being the maximum number of octets needed to represent the unsigned integer

Returns the Position3d of an Entry.

Check whether binary arrays are equal to each other.

Return the intersection of two areas, for which there may be none.

Returns the intersection of two ranges, of which there may be none.

Returns whether a Position3d is included by a given Range.

Return whether a 3d position is included by an Area.

Returns whether a Value is included by a given Range.

Returns whether a path is prefixed by another path.

Return whether a subspace ID is included by an Area.

Returns whether a Path does not exceed the limits given by a PathScheme.

Returns the maximum number of octets needed to store an unsigned integer.

A total order over bytestrings.

A total order over Path.

Order a given pair of ranges by their type. Useful for functions using boolean logic based on the different combinations of range types.

A total order over BigInt.

Return all prefixes of a given path (which included the path itself), in order of path length.

Returns whether a range is fully included by another range.

Return the succeeding bytestring of the given bytestring without increasing that bytestring's length.

Returns the successor to a path given a Path and PathScheme.

Return a successor to a prefix, that is, the next element that is not a prefix of the given path.

Type Aliases

A grouping of Entries.

A grouping of Entries that are among the newest in some store.

The metadata for storing a payload.

A scheme for encoding public keys and the signatures they produce.

A scheme for signing with a keypair, and encoding the associated public keys and signatures.

A Path is a sequence of bytestrings which Entrys are written to.

A set of limits for Paths.

A position in a space with dimensions of time, path, and subspace.

A closed or open range of values.

A three-dimensional with dimension of time, path, and subspace.

A scheme for signing and verifying data using key pairs.

A function which returns the succeeding value for a given value of a set.

Defines a total order over a given set.