Function esp_idf_sys::multi_heap_get_allocated_size
source ยท pub unsafe extern "C" fn multi_heap_get_allocated_size(
heap: multi_heap_handle_t,
p: *mut c_void,
) -> usize
Expand description
@brief Return the size that a particular pointer was allocated with.
@param heap Handle to a registered heap. @param p Pointer, must have been previously returned from multi_heap_malloc() or multi_heap_realloc() for the same heap.
@return Size of the memory allocated at this block. May be more than the original size argument, due to padding and minimum block sizes.