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

Method write_var_i64

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

Source from the content-addressed store, hash-verified

138
139 #[inline(always)]
140 pub fn write_var_i64(&mut self, value: i64) {
141 let zigzag = ((value as u64) << 1) ^ ((value >> 63) as u64);
142 self._write_var_u64(zigzag);
143 }
144
145 // ============ TAGGED_INT64 (TypeId = 8) ============
146

Callers 8

write_isizeMethod · 0.80
write_typed_payloadFunction · 0.80
fory_write_dataMethod · 0.80
test_buffer_varFunction · 0.80
prepare_var_i64_bufferFunction · 0.80

Calls 1

_write_var_u64Method · 0.80

Tested by 1

test_buffer_varFunction · 0.64