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

Function change_of_edge

atomic-core/src/pristine/slice.rs:117–122  ·  view source on GitHub ↗
(edge: &[u8; 24])

Source from the content-addressed store, hash-verified

115}
116
117fn change_of_edge(edge: &[u8; 24]) -> (u64, u64) {
118 (
119 u64::from_le_bytes(edge[8..16].try_into().unwrap()),
120 u64::from_le_bytes(edge[16..24].try_into().unwrap()),
121 )
122}
123
124fn edge_flags(edge: &[u8; 24]) -> EdgeFlags {
125 let flag_and_pos = u64::from_le_bytes(edge[0..8].try_into().unwrap());

Callers 1

export_graph_sliceMethod · 0.85

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected