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

Function session_turn_namespace

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

Source from the content-addressed store, hash-verified

263/// Derive the local ordered-index prefix for an external session ID.
264#[inline]
265pub fn session_turn_namespace(session_id: &str) -> [u8; 32] {
266 *blake3::hash(session_id.as_bytes()).as_bytes()
267}
268
269// ---------------------------------------------------------------------------
270// Value types

Calls 2

hashFunction · 0.50
as_bytesMethod · 0.45