Type Alias otHeapCAllocFn

Source
pub type otHeapCAllocFn = Option<unsafe extern "C" fn(aCount: size_t, aSize: size_t) -> *mut c_void>;
Expand description

Function pointer used to set external CAlloc function for OpenThread.

@param[in] aCount Number of allocate units. @param[in] aSize Unit size in bytes.

@returns A pointer to the allocated memory.

@retval NULL Indicates not enough memory.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.