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

Function encode_session_prefix

atomic-core/src/change/session.rs:274–278  ·  view source on GitHub ↗
(provenance_id: u64)

Source from the content-addressed store, hash-verified

272/// numeric values of `provenance_id`.
273#[inline]
274pub fn encode_session_prefix(provenance_id: u64) -> [u8; 16] {
275 let mut key = [0u8; 16];
276 key[0..8].copy_from_slice(&provenance_id.to_be_bytes());
277 key
278}
279
280// ---------------------------------------------------------------------------
281// Tests

Callers 5

get_session_eventsMethod · 0.85
get_session_todosMethod · 0.85
get_session_phasesMethod · 0.85
test_session_prefixFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_session_prefixFunction · 0.68