Skip to main content

b3AllocFcn

Type Alias b3AllocFcn 

Source
pub type b3AllocFcn = Option<unsafe extern "C" fn(size: i32, alignment: i32) -> *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 b3AllocFcn {
    None,
    Some(unsafe extern "C" fn(i32, i32) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.