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

Function decode_view_seq

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

Source from the content-addressed store, hash-verified

1139/// Decode a view-sequence pair from 16 bytes
1140#[inline]
1141pub fn decode_view_seq(key: &[u8; 16]) -> (u64, u64) {
1142 let view_id = u64::from_be_bytes(key[0..8].try_into().unwrap());
1143 let seq = u64::from_be_bytes(key[8..16].try_into().unwrap());
1144 (view_id, seq)
1145}
1146
1147/// Encode an operation/receipt pair for operation-prefix range scans.
1148#[inline]

Callers 8

iter_conflictsMethod · 0.85
snapshot_conflictsMethod · 0.85
iter_changesMethod · 0.85
next_inode_idFunction · 0.85
iter_conflictsMethod · 0.85
snapshot_conflictsMethod · 0.85
iter_changesMethod · 0.85

Calls 1

unwrapMethod · 0.45

Tested by 1