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

Method max_for_inode

atomic-core/tests/inode_graph_test.rs:64–69  ·  view source on GitHub ↗

Create the maximum possible InodeVertex for a given inode. Used for range queries to find all vertices in a file.

(inode: Inode)

Source from the content-addressed store, hash-verified

62 /// Create the maximum possible InodeVertex for a given inode.
63 /// Used for range queries to find all vertices in a file.
64 pub fn max_for_inode(inode: Inode) -> Self {
65 Self {
66 inode,
67 span: GraphNode::MAX,
68 }
69 }
70
71 /// Encode as bytes for use as a redb key.
72 /// Layout: [inode: 8 bytes][change: 8 bytes][start: 8 bytes][end: 8 bytes]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected