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

Function decode_vertex

atomic-core/src/pristine/tables.rs:1085–1090  ·  view source on GitHub ↗
(key: &[u8; 24])

Source from the content-addressed store, hash-verified

1083/// Decode a span from 24 bytes
1084#[inline]
1085pub fn decode_vertex(key: &[u8; 24]) -> (u64, u64, u64) {
1086 let change_id = u64::from_be_bytes(key[0..8].try_into().unwrap());
1087 let start = u64::from_be_bytes(key[8..16].try_into().unwrap());
1088 let end = u64::from_be_bytes(key[16..24].try_into().unwrap());
1089 (change_id, start, end)
1090}
1091
1092/// Encode an inode-span as 32 bytes for use as an inode_graph key
1093#[inline]

Callers 11

export_graph_sliceMethod · 0.85
canonical_effect_writersFunction · 0.85
find_blockMethod · 0.85
find_block_endMethod · 0.85
ensure_span_indexMethod · 0.85
find_blockMethod · 0.85
find_block_endMethod · 0.85
ensure_loadedMethod · 0.85
export_sandbox_sliceMethod · 0.85

Calls 1

unwrapMethod · 0.45

Tested by 1