MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / render

Method render

atomic-core/src/pristine/span_patch_storage.rs:1273–1277  ·  view source on GitHub ↗

Render the visible span tree for an inode.

(&self, inode: Inode)

Source from the content-addressed store, hash-verified

1271
1272 /// Render the visible span tree for an inode.
1273 pub fn render(&self, inode: Inode) -> Result<Vec<u8>> {
1274 let (content, oversized) = self.render_internal(inode, None, usize::MAX)?;
1275 ensure!(!oversized, "span render exceeds addressable memory");
1276 Ok(content)
1277 }
1278
1279 /// Render at most `max_bytes`, validating the complete span tree even when
1280 /// the visible file is too large to retain.

Calls 1

render_internalMethod · 0.80