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

Function span_key

atomic-core/src/pristine/span_patch_storage.rs:47–51  ·  view source on GitHub ↗
(inode: Inode, owner: NodeId, start: u64, end: u64)

Source from the content-addressed store, hash-verified

45}
46
47fn span_key(inode: Inode, owner: NodeId, start: u64, end: u64) -> [u8; 32] {
48 words([inode.get(), owner.get(), start, end])
49 .try_into()
50 .expect("fixed span key size")
51}
52
53/// Index a registered change under the same transaction as its namespace and
54/// view publication. Root inode bindings must come from the namespace writer.

Calls 2

wordsFunction · 0.85
getMethod · 0.65