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(_: u64, _: u64) -> *mut c_void),
}