(&mut self)
| 310 | |
| 311 | #[inline(always)] |
| 312 | fn next(&mut self) -> Option<Self::Item> { |
| 313 | if self.buf.len() == self.pos { |
| 314 | return None; |
| 315 | } |
| 316 | let res = unsafe { |
| 317 | InOut { |
| 318 | in_ptr: self.buf.in_ptr.add(self.pos), |
| 319 | out_ptr: self.buf.out_ptr.add(self.pos), |
| 320 | _pd: PhantomData, |
| 321 | } |
| 322 | }; |
| 323 | self.pos += 1; |
| 324 | Some(res) |
| 325 | } |
| 326 | } |