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

Function span_key

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

Source from the content-addressed store, hash-verified

47}
48
49fn span_key(inode: Inode, owner: NodeId, start: u64, end: u64) -> [u8; 32] {
50 words([inode.get(), owner.get(), start, end])
51 .try_into()
52 .expect("fixed span key size")
53}
54
55/// Bind only the canonical legacy FileAdd identity needed by a version-3 span
56/// edit. This is a small derived index, never content or a numeric-name alias.

Calls 2

wordsFunction · 0.85
getMethod · 0.65