Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MaterializeInc/materialize
/ zig_i32
Function
zig_i32
src/avro/src/util.rs:66–68 ·
view source on GitHub ↗
(n: i32, buffer: &mut Vec<u8>)
Source
from the content-addressed store, hash-verified
64
}
65
66
pub fn zig_i32(n: i32, buffer: &mut Vec<u8>) {
67
zig_i64(n as i64, buffer)
68
}
69
70
pub fn zig_i64(n: i64, buffer: &mut Vec<u8>) {
71
encode_variable(((n << 1) ^ (n >> 63)) as u64, buffer)
Callers
3
test_zigzag
Function · 0.85
test_zig_i32
Function · 0.85
encode_int
Function · 0.85
Calls
1
zig_i64
Function · 0.85
Tested by
2
test_zigzag
Function · 0.68
test_zig_i32
Function · 0.68