Lines Matching defs:realloc
14027 // like `malloc`, `realloc`, and `free`, respectively.
14109 /// This function forwards calls to the [`GlobalAlloc::realloc`] method
14113 /// This function is expected to be deprecated in favor of the `realloc` method
14118 /// See [`GlobalAlloc::realloc`].
14121 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
14195 // `realloc` probably checks for `new_size >= old_layout.size()` or something similar.
14198 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size);
14286 // `realloc` probably checks for `new_size <= old_layout.size()` or something similar.
14289 let raw_ptr = realloc(ptr.as_ptr(), old_layout, new_size);
47585 #[doc(alias = "realloc")]
47611 #[doc(alias = "realloc")]
47649 #[doc(alias = "realloc")]
47691 #[doc(alias = "realloc")]
47711 #[doc(alias = "realloc")]
47741 #[doc(alias = "realloc")]
51910 v.reserve(50, 150); // (causes a realloc, thus using 50 + 150 = 200 units of fuel)