(&mut self, length: usize)
| 44 | /// Panics if adding `length` would overflow `usize` |
| 45 | #[inline] |
| 46 | pub fn push_length(&mut self, length: usize) { |
| 47 | self.last_offset = self.last_offset.checked_add(length).expect("overflow"); |
| 48 | self.offsets.push(O::usize_as(self.last_offset)) |
| 49 | } |
| 50 | |
| 51 | /// Reserve space for at least `additional` further offsets |
| 52 | #[inline] |