Home
last modified time | relevance | path

Searched refs:raw_ptr (Results 1 – 1 of 1) sorted by relevance

/rust/alloc/
Dalloc.rs173 let raw_ptr = if zeroed { alloc_zeroed(layout) } else { alloc(layout) }; in alloc_impl() localVariable
174 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in alloc_impl()
205 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in grow_impl() localVariable
206 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in grow_impl()
208 raw_ptr.add(old_size).write_bytes(0, new_size - old_size); in grow_impl()
296 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size); in shrink() localVariable
297 let ptr = NonNull::new(raw_ptr).ok_or(AllocError)?; in shrink()