Functions | |
bool | libcwd::test_delete (void const *void_ptr) |
Test if a pointer points to the start of an allocated memory block. More... | |
size_t | libcwd::mem_size () |
Returns the total number of allocated bytes. | |
unsigned long | libcwd::mem_blocks () |
Returns the total number of allocated memory blocks. | |
bool libcwd::test_delete | ( | void const * | void_ptr | ) |
Test if a pointer points to the start of an allocated memory block.
true
when ptr does not point to the start of an allocated memory block. No checks are performed on the type of allocator that was used: that is done when the memory block is actually deleted, see De-Allocation Pointer Validation.Unlike find_alloc, test_delete
also works for invisible memory blocks.