Function nstd::alloc::nstd_alloc_reallocate
source · [−]#[no_mangle]
pub unsafe extern "C" fn nstd_alloc_reallocate(
ptr: &mut NSTDAny,
size: usize,
new_size: usize
) -> NSTDErrorCodeExpand description
Reallocates a memory block.
Parameters:
NSTDAny *const ptr - Pointer to the memory block.
const NSTDUSize size - The current size of the memory block.
const NSTDUSize new_size - The new size of the memory block.
Returns: NSTDErrorCode errc - Nonzero on error.