MCPcopy Create free account
hub / github.com/apache/fory / write_var_i32

Method write_var_i32

rust/fory-core/src/buffer.rs:125–128  ·  view source on GitHub ↗
(&mut self, value: i32)

Source from the content-addressed store, hash-verified

123
124 #[inline(always)]
125 pub fn write_var_i32(&mut self, value: i32) {
126 let zigzag = ((value as u32) << 1) ^ ((value >> 31) as u32);
127 self._write_var_u32(zigzag)
128 }
129
130 // ============ INT64 (TypeId = 6) ============
131

Callers 9

write_isizeMethod · 0.80
write_typed_payloadFunction · 0.80
fory_write_dataMethod · 0.80
test_buffer_varFunction · 0.80
test_var_i32Function · 0.80
prepare_var_i32_bufferFunction · 0.80

Calls 1

_write_var_u32Method · 0.80

Tested by 2

test_buffer_varFunction · 0.64
test_var_i32Function · 0.64