MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / decode_handle

Function decode_handle

nodedb/src/engine/kv/slab.rs:317–321  ·  view source on GitHub ↗
(handle: u32)

Source from the content-addressed store, hash-verified

315}
316
317fn decode_handle(handle: u32) -> (u8, u32) {
318 let tier_idx = ((handle >> TIER_SHIFT) & 0x7) as u8;
319 let slot_idx = handle & SLOT_MASK;
320 (tier_idx, slot_idx)
321}
322
323fn encode_large_handle(id: u32) -> u32 {
324 LARGE_FLAG | id

Callers 3

getMethod · 0.85
freeMethod · 0.85

Calls

no outgoing calls

Tested by 1