Documentation - v19.12.0-dev
    Preparing search index...
    • Returns the offset in the buffer of the given node index

      Slot 0 = first node, no reserved "header slot." A node at slot N lives at i32 offset (HEADER.STRIDE + N * NODE.STRIDE).

      Parameters

      • slot: number

        Index of the node in the node pool.

      Returns number

      The i32 offset of that node's fields in the buffer.