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

Function decode_view_seq

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

Source from the content-addressed store, hash-verified

856/// Decode a view-sequence pair from 16 bytes
857#[inline]
858pub fn decode_view_seq(key: &[u8; 16]) -> (u64, u64) {
859 let view_id = u64::from_be_bytes(key[0..8].try_into().unwrap());
860 let seq = u64::from_be_bytes(key[8..16].try_into().unwrap());
861 (view_id, seq)
862}
863
864/// Encode a view-merkle pair as 40 bytes
865#[inline]

Callers 3

iter_changesMethod · 0.85
iter_changesMethod · 0.85

Calls 1

unwrapMethod · 0.45

Tested by 1