flix

0.75.3

Orbit64.V2.Registry

The Orbit64 V2 registry of puzzle types (see FORMAT-V2.md).

Entries are placed in registry order. Each takes the shortest token length whose unallocated values still hold all its states, and starts directly after the entries already placed at that length. Appending an entry therefore never changes an earlier entry's length or offset.

Type Aliases

type alias Entry = { count = BigInt, id = Int32, length = Int32, model = Model, n = Int32, offset = BigInt, pose = Pose }§ Source

One puzzle type with its allocated token range.

Definitions

def allocate(types: List[(Int32, Model, Pose)]): List[Entry]§ Source

Place types in order with the allocation rule.

def entries(): List[Entry]§ Source

Every entry of the registry with its length and offset, in ID order.

def entry(id: Int32): Option[Entry]§ Source

The entry with the given ID, if the registry has one.

def initialTypes(): List[(Int32, Model, Pose)]§ Source

The types of the initial registry, in registry order, as (n, model, pose).

def lookup(length: Int32, value: BigInt): Option[(Entry, BigInt)]§ Source

The entry and rank a token of the given length and value addresses.