MCPcopy 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
66pub fn zig_i32(n: i32, buffer: &mut Vec<u8>) {
67 zig_i64(n as i64, buffer)
68}
69
70pub fn zig_i64(n: i64, buffer: &mut Vec<u8>) {
71 encode_variable(((n << 1) ^ (n >> 63)) as u64, buffer)

Callers 3

test_zigzagFunction · 0.85
test_zig_i32Function · 0.85
encode_intFunction · 0.85

Calls 1

zig_i64Function · 0.85

Tested by 2

test_zigzagFunction · 0.68
test_zig_i32Function · 0.68