#include <oskit/com/mem.h>oskit_u32_t oskit_mem_getsize(oskit_mem_t *m, void *ptr);
Return the size of the chunk of memory pointed to by ptr. The chunk must have been allocated with OSKIT_MEM_AUTO_SIZE for the size to be determined. The returned size may be greater than the original size requested, because of rounding done to satisfy alignment constraints.
- m
- The memory object to operate on.
- ptr
- The chunk to inquire about.
Returns the size of the chunk, or an undefined value if the chunk was not allocated with OSKIT_MEM_AUTO_SIZE.