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

Function edge_flags

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

Source from the content-addressed store, hash-verified

122}
123
124fn edge_flags(edge: &[u8; 24]) -> EdgeFlags {
125 let flag_and_pos = u64::from_le_bytes(edge[0..8].try_into().unwrap());
126 EdgeFlags::from_bits_truncate((flag_and_pos >> 56) as u8)
127}
128
129fn edge_dest(edge: &[u8; 24]) -> Position<NodeId> {
130 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