Function tvix_store::nar::seekable::walk_node

source ยท
fn walk_node(
    segments: &mut Vec<(u64, Data)>,
    offset: &mut u64,
    get_directory: &impl Fn(&B3Digest) -> Directory,
    node: Node,
    nar_node: Node<'_, Vec<u8>>,
) -> Result<(), RenderError>
Expand description

Used during construction. Recursively walks the node and its children, and fills segments with the appropriate Data::Literal and Data::Blob elements.