MCPcopy Create free account
hub / github.com/RetypeOS/parcode / root_node

Method root_node

src/reader.rs:769–771  ·  view source on GitHub ↗

Internal helper to get the root chunk node.

(&self)

Source from the content-addressed store, hash-verified

767
768 /// Internal helper to get the root chunk node.
769 pub fn root_node(&self) -> Result<ChunkNode<'_>> {
770 self.get_chunk(self.header.root_offset, self.header.root_length)
771 }
772
773 /// Helper to read a u32 from a byte slice (Little Endian).
774 fn read_u32(slice: &[u8]) -> Result<u32> {

Callers 8

bench_readersFunction · 0.80
loadMethod · 0.80
rootMethod · 0.80
inspect_fileMethod · 0.80
test_nested_structuresFunction · 0.80
test_random_access_logicFunction · 0.80
mainFunction · 0.80

Calls 1

get_chunkMethod · 0.80

Tested by 5

inspect_fileMethod · 0.64
test_nested_structuresFunction · 0.64
test_random_access_logicFunction · 0.64
mainFunction · 0.64