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

Function encode_large_handle

nodedb/src/engine/kv/slab.rs:323–325  ·  view source on GitHub ↗
(id: u32)

Source from the content-addressed store, hash-verified

321}
322
323fn encode_large_handle(id: u32) -> u32 {
324 LARGE_FLAG | id
325}
326
327fn decode_large_handle(handle: u32) -> u32 {
328 handle & !LARGE_FLAG

Callers 2

allocMethod · 0.85
large_handle_encodingFunction · 0.85

Calls

no outgoing calls

Tested by 1

large_handle_encodingFunction · 0.68