Type Alias libnghttp2_sys::nghttp2_malloc

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

@functypedef

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

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.