void heapBlockVisitor(void *block, MEMHeapHandle heap, void *context) { WHBLogPrintf("Block 0x%08X, size 0x%08X, group 0x%04X, direction %d", (uint32_t)block, MEMGetSizeForMBlockExpHeap(block), MEMGetGroupIDForMBlockExpHeap(block), MEMGetAllocDirForMBlockExpHeap(block)); }
size_t _malloc_usable_size_r(struct _reent *r, void *ptr) { return MEMGetSizeForMBlockExpHeap(ptr); }
size_t __wrap_malloc_usable_size(void *ptr) { return MEMGetSizeForMBlockExpHeap(ptr); }