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

Method write_isize

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

Source from the content-addressed store, hash-verified

459
460 #[inline(always)]
461 pub fn write_isize(&mut self, value: isize) {
462 const SIZE: usize = std::mem::size_of::<isize>();
463 match SIZE {
464 2 => self.write_i16(value as i16),
465 4 => self.write_var_i32(value as i32),
466 8 => self.write_var_i64(value as i64),
467 _ => unreachable!("unsupported isize size"),
468 }
469 }
470
471 #[inline(always)]
472 pub fn write_usize(&mut self, value: usize) {

Callers

nothing calls this directly

Calls 3

write_i16Method · 0.80
write_var_i32Method · 0.80
write_var_i64Method · 0.80

Tested by

no test coverage detected