nghttp2_realloc

Type Alias 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§

pub 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.