Skip to main content

btree_node_bytes

Function btree_node_bytes 

Source
fn btree_node_bytes() -> usize
Expand description

An upper bound on the bytes one B-tree node holds.

A node keeps at most eleven key/value pairs and twelve child pointers, plus a header of a few words; the leaf form is smaller than that. The header allowance is generous on purpose, so the bound does not depend on how a toolchain lays the node out.