(&mut self, value: isize)
| 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) { |
nothing calls this directly
no test coverage detected