MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / next_unchecked_as_ptr

Method next_unchecked_as_ptr

src/fast.rs:252–258  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

250 /// Like [`NextUnchecked::next_unchecked`] but doesn't dereference the `T`.
251 #[inline(always)]
252 pub unsafe fn next_unchecked_as_ptr(&mut self) -> *const T {
253 #[cfg(debug_assertions)]
254 assert!((self.ptr.wrapping_add(1) as usize) <= self.end as usize);
255 let p = self.ptr;
256 self.ptr = self.ptr.add(1);
257 p
258 }
259
260 #[inline(always)]
261 pub unsafe fn advance(&mut self, n: usize) {

Callers 1

decodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected