pub unsafe extern "C" fn BridgePrepareReallocAligned(
old_ptr: *mut c_void,
new_size: size_t,
alignment: size_t,
old_size: *mut size_t,
) -> *mut c_voidExpand description
Prepare to reallocate previously allocated memory.
Caller should do the real data migration if a returned pointer is not the same as old_ptr.
Client should copy bytes manually and then free old_ptr.
The pointer old_ptr must have been allocated before.
The alignment must match the one used to allocate old_ptr.
Returns null pointer if allocation failed or new_size is 0.
old_size will be set to the original size of the memory block.