Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ zigzag_decode
Function
zigzag_decode
nodedb-array/src/codec/coord_delta.rs:30–32 ·
view source on GitHub ↗
(v: u64)
Source
from the content-addressed store, hash-verified
28
}
29
30
fn zigzag_decode(v: u64) -> i64 {
31
((v >> 1) as i64) ^ (-((v & 1) as i64))
32
}
33
34
fn write_varint(out: &mut Vec<u8>, mut v: u64) {
35
loop {
Callers
1
decode_coord_axis
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected