Skip to main contentModule node
Source - Node
- 16-byte flat node in the
BufferDocument node array.
- NodeType
- Discriminant stored in the low 4 bits of
Node::props_type.
- NULL
- NULL sentinel — never a valid node index.
- PAGE_MASK
- Bitmask for extracting the slot within a page.
- PAGE_SHIFT
- Page size exponent: 2^12 = 4096 nodes per page.
- PAGE_SIZE
- Nodes per page (4096). Each page = 4096 × 16 bytes = 64 KB.
- node_ref_from
- Constructs a flat node index from a page number and slot.
- page_of
- Returns the page number for a flat node index.
- slot_of
- Returns the slot (offset within page) for a flat node index.