MCPcopy Create free account
hub / github.com/RustCrypto/utils / next

Method next

inout/src/inout_buf.rs:312–325  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected