Function esp_idf_svc::sys::multi_heap_free_size
source ยท pub unsafe extern "C" fn multi_heap_free_size(
heap: *mut multi_heap_info,
) -> usize
Expand description
@brief Return free heap size
Returns the number of bytes available in the heap.
Equivalent to the total_free_bytes member returned by multi_heap_get_heap_info().
Note that the heap may be fragmented, so the actual maximum size for a single malloc() may be lower. To know this size, see the largest_free_block member returned by multi_heap_get_heap_info().
@param heap Handle to a registered heap. @return Number of free bytes.