pub type CassReallocFunction = Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize) -> *mut c_void>;
Expand description

A custom realloc function. This function attempts to change the size of the memory pointed to by “ptr”. If the memory cannot be resized then new memory should be allocated and contain the contents of the original memory at “ptr”.

@param[in] ptr A pointer to the original memory. If NULL it should behave the same as “CassMallocFunction” @param[in] size The size of the memory to allocate/resize.

@see CassMallocFunction @see CassFreeFunction @see cass_alloc_set_functions()