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

Function decode_words

atomic-core/src/pristine/span_patch_storage.rs:43–45  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

41}
42
43fn decode_words<const N: usize>(bytes: &[u8]) -> [u64; N] {
44 std::array::from_fn(|i| u64::from_be_bytes(bytes[i * 8..i * 8 + 8].try_into().unwrap()))
45}
46
47fn span_key(inode: Inode, owner: NodeId, start: u64, end: u64) -> [u8; 32] {
48 words([inode.get(), owner.get(), start, end])

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected