Type Definition rps_sys::PFN_rpsRealloc

source ·
pub type PFN_rpsRealloc = Option<unsafe extern "C" fn(pUserContext: *mut c_void, oldBuffer: *mut c_void, oldSize: usize, newSize: usize, alignment: usize) -> *mut c_void>;
Expand description

Signature of functions for reallocating memory.

@param pUserContext Context for memory allocation. @param oldBuffer Address of the memory allocation to be reallocated. Must not be NULL for oldSize != 0. @param oldSize Size of the old memory allocation in bytes. @param newSize Desired size of the allocation in bytes. @param alignment Minimum alignment requirement of the desired allocation in bytes.

@returns Pointer to the (re-)allocated memory.