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

Function encode_session_prefix

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

Source from the content-addressed store, hash-verified

518/// numeric values of `provenance_id`.
519#[inline]
520pub fn encode_session_prefix(provenance_id: u64) -> [u8; 16] {
521 let mut key = [0u8; 16];
522 key[0..8].copy_from_slice(&provenance_id.to_be_bytes());
523 key
524}
525
526// ---------------------------------------------------------------------------
527// 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