Takes the builder itself and returns an [`OffsetBuffer`] # Panics Panics if offsets overflow `O`
(self)
| 60 | /// |
| 61 | /// Panics if offsets overflow `O` |
| 62 | pub fn finish(self) -> OffsetBuffer<O> { |
| 63 | O::from_usize(self.last_offset).expect("overflow"); |
| 64 | unsafe { OffsetBuffer::new_unchecked(self.offsets.into()) } |
| 65 | } |
| 66 | |
| 67 | /// Builds the [OffsetBuffer] without resetting the builder. |
| 68 | /// |
no outgoing calls