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

Method next_unchecked

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

Source from the content-addressed store, hash-verified

297impl<'a, T: Copy> NextUnchecked<'a, T> for FastSlice<'a, T> {
298 #[inline(always)]
299 unsafe fn next_unchecked(&mut self) -> T {
300 #[cfg(debug_assertions)]
301 assert!((self.ptr.wrapping_add(1) as usize) <= self.end as usize);
302 let t = *self.ptr;
303 self.ptr = self.ptr.add(1);
304 t
305 }
306
307 #[inline(always)]
308 unsafe fn chunk_unchecked(&mut self, length: usize) -> &'a [T] {

Callers 8

decodeMethod · 0.80
bench_next_uncheckedFunction · 0.80
decodeMethod · 0.80
decodeMethod · 0.80
decodeMethod · 0.80
decodeMethod · 0.80
decodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected