Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
323
fn encode_large_handle(id: u32) -> u32 {
324
LARGE_FLAG | id
325
}
326
327
fn decode_large_handle(handle: u32) -> u32 {
328
handle & !LARGE_FLAG
Callers
2
alloc
Method · 0.85
large_handle_encoding
Function · 0.85
Calls
no outgoing calls
Tested by
1
large_handle_encoding
Function · 0.68