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

Method read_var_i64

rust/fory-core/src/buffer.rs:677–680  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

675
676 #[inline(always)]
677 pub fn read_var_i64(&mut self) -> Result<i64, Error> {
678 let encoded = self.read_var_u64()?;
679 Ok(((encoded >> 1) as i64) ^ -((encoded & 1) as i64))
680 }
681
682 // ============ TAGGED_INT64 (TypeId = 8) ============
683

Callers 10

read_isizeMethod · 0.80
read_i64_payloadFunction · 0.80
read_u64_payloadFunction · 0.80
read_scalar_valueFunction · 0.80
skip_valueFunction · 0.80
fory_read_dataMethod · 0.80
test_buffer_varFunction · 0.80
bench_read_var_i64_smallFunction · 0.80
bench_read_var_i64_largeFunction · 0.80

Calls 1

read_var_u64Method · 0.80

Tested by 1

test_buffer_varFunction · 0.64