b2AllocFcn

Type Alias b2AllocFcn 

Source
pub type b2AllocFcn = Option<unsafe extern "C" fn(size: c_uint, alignment: c_int) -> *mut c_void>;
Expand description

Prototype for user allocation function @param size the allocation size in bytes @param alignment the required alignment, guaranteed to be a power of 2

Aliased Type§

pub enum b2AllocFcn {
    None,
    Some(unsafe extern "C" fn(u32, i32) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u32, i32) -> *mut c_void)

Some value of type T.