Type Alias cassandra_cpp_sys::CassReallocFunction

source ·
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()

Aliased Type§

enum CassReallocFunction {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: usize) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: usize) -> *mut c_void)

Some value of type T.