MCPcopy Create free account
hub / github.com/ezrosent/allocators-rs / c_realloc

Method c_realloc

malloc-bind/src/lib.rs:329–382  ·  view source on GitHub ↗

The C `realloc` function. `realloc` changes the size of the allocation pointed to by `ptr` to `size` bytes, returning the address of the modified allocation (which may be different from `ptr`). The contents will be unchanged in the range from the start of the allocation to the minimum of the old and new sizes. If the new size is larger than the old size, the added memory will not be initialized.

(&self, ptr: *mut c_void, size: size_t)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Implementers 1

alloc_impl.rselfmalloc/src/alloc_impl.rs

Calls 10

unlikelyFunction · 0.85
roundupFunction · 0.85
layout_from_size_alignFunction · 0.85
get_layoutMethod · 0.80
delete_layoutMethod · 0.80
insert_layoutMethod · 0.80
c_mallocMethod · 0.45
c_freeMethod · 0.45
allocMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected