示例#1
0
文件: main.c 项目: Maschell/wut
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));
}
示例#2
0
size_t _malloc_usable_size_r(struct _reent *r, void *ptr)
{
   return MEMGetSizeForMBlockExpHeap(ptr);
}
示例#3
0
size_t
__wrap_malloc_usable_size(void *ptr) {
   return MEMGetSizeForMBlockExpHeap(ptr);
}