Skip to main content

Module node

Module node 

Source
Expand description

Node record constants

Constantsยง

ADJACENCY_METADATA_SIZE
Size of adjacency metadata after variable-length fields
DATA_LEN_SIZE
FIXED_HEADER_SIZE
Fixed size of node record header before variable-length fields
FLAGS_SIZE
ID_SIZE
INCOMING_COUNT_SIZE
INCOMING_OFFSET_SIZE
KIND_LEN_SIZE
MAX_DATA_LENGTH
MAX_STRING_LENGTH
Maximum allowed string lengths to prevent allocation attacks
MAX_STRING_LENGTH_U32
Maximum allowed string lengths as u32 for compatibility with error types
NAME_LEN_SIZE
NODE_SLOT_SIZE
Size of each node slot in bytes (fixed 4KB for V2 format)
OUTGOING_COUNT_SIZE
OUTGOING_OFFSET_SIZE