pub fn set_canopy_leaf_nodes(
canopy_bytes: &mut [u8],
max_depth: u32,
start_index: u32,
nodes: &[Node],
) -> Result<()>
Expand description
Sets the leaf nodes of the canopy. The leaf nodes are the lowest level of the canopy, representing the leaves of the canopy-tree. The method will update the parent nodes of all the modified subtrees up to the uppermost level of the canopy. The leaf nodes indexing for the start_index is 0-based without regards to the full tree indexes or the node indexes. The start_index is the index of the first leaf node to be updated.