Interface Node

Represents a node in the binary search tree used for gallery indexing. Each node contains keys for searching, data pointers, and references to child nodes.

interface Node {
    datas: [bigint, number][];
    keys: Uint8Array<ArrayBufferLike>[];
    subnodeAddresses: bigint[];
}

Properties

datas: [bigint, number][]

Array of [offset, length] pairs pointing to gallery data

keys: Uint8Array<ArrayBufferLike>[]

Array of keys used for searching

subnodeAddresses: bigint[]

Array of addresses pointing to child nodes