executorch_pal_allocate

Function executorch_pal_allocate 

Source
pub unsafe extern "C" fn executorch_pal_allocate(
    size: usize,
) -> *mut c_void
Expand description

NOTE: Core runtime code must not call this directly. It may only be called by a MemoryAllocator wrapper.

Allocates size bytes of memory.

@param[in] size Number of bytes to allocate. @returns the allocated memory, or nullptr on failure. Must be freed using et_pal_free().