(&self, layout: std::alloc::Layout)
| 49 | } |
| 50 | |
| 51 | unsafe fn alloc_zeroed(&self, layout: std::alloc::Layout) -> *mut u8 { |
| 52 | let ptr = System.alloc_zeroed(layout); |
| 53 | self.check_alloc_failure(ptr, layout); |
| 54 | ptr |
| 55 | } |
| 56 | |
| 57 | unsafe fn realloc(&self, ptr: *mut u8, layout: std::alloc::Layout, new_size: usize) -> *mut u8 { |
| 58 | let new_ptr = System.realloc(ptr, layout, new_size); |
nothing calls this directly
no test coverage detected