[−][src]Type Definition openthread_sys::otHeapCAllocFn
type otHeapCAllocFn = Option<unsafe extern "C" fn(aCount: size_t, aSize: size_t) -> *mut c_void>;
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.