Type Alias libnghttp2_sys::nghttp2_realloc

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

@functypedef

Custom memory allocator to replace realloc(). The |mem_user_data| is the mem_user_data member of :type:nghttp2_mem structure.

Aliased Type§

enum nghttp2_realloc {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: usize, _: *mut c_void) -> *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) -> *mut c_void)

Some value of type T.