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

Function encode_session_prefix

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

Source from the content-addressed store, hash-verified

511/// numeric values of `provenance_id`.
512#[inline]
513pub fn encode_session_prefix(provenance_id: u64) -> [u8; 16] {
514 let mut key = [0u8; 16];
515 key[0..8].copy_from_slice(&provenance_id.to_be_bytes());
516 key
517}
518
519// ---------------------------------------------------------------------------
520// 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