Lines Matching refs:as_ptr
281 self.ptr.as_ptr()
287 pub const fn as_ptr(&self) -> *const T {
288 self.ptr.as_ptr()
804 if !unsafe { bindings::is_vmalloc_addr(self.ptr.as_ptr().cast()) } {
853 // - `self.as_ptr()` is valid for reads of `self.len()` elements of `T`.
858 ptr::copy_nonoverlapping(self.as_ptr(), new_ptr.as_ptr().cast::<T>(), self.len())
1043 // SAFETY: The memory behind `self.as_ptr()` is guaranteed to contain `self.len`
1045 unsafe { slice::from_raw_parts(self.as_ptr(), self.len) }
1055 // SAFETY: The memory behind `self.as_ptr()` is guaranteed to contain `self.len`
1300 let has_advanced = ptr != buf.as_ptr();
1307 // - `buf.as_ptr()` is valid for writes of `len * size_of::<T>()` bytes,
1308 // - `ptr` and `buf.as_ptr()` are not be subject to aliasing restrictions relative to
1311 unsafe { ptr::copy(ptr, buf.as_ptr(), len) };
1312 ptr = buf.as_ptr();
1335 ptr.as_ptr().cast()