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

Function session_turn_namespace

atomic-core/src/change/session.rs:272–274  ·  view source on GitHub ↗
(session_id: &str)

Source from the content-addressed store, hash-verified

270/// Derive the local ordered-index prefix for an external session ID.
271#[inline]
272pub fn session_turn_namespace(session_id: &str) -> [u8; 32] {
273 *blake3::hash(session_id.as_bytes()).as_bytes()
274}
275
276// ---------------------------------------------------------------------------
277// Value types

Callers 6

get_session_turnsMethod · 0.85
append_session_turnMethod · 0.85
rewrite_session_turnsMethod · 0.85
turn_keyFunction · 0.85

Calls 2

hashFunction · 0.50
as_bytesMethod · 0.45