![]() |
Related | |
Memory Allocation Debug Support: Introduction | |
Overview Of Allocated Memory | |
De-Allocation Pointer Validation | |
Overflow/Underflow Protection (Red Zones) | |
Memory Allocation Markers: Memory Leak Checking | |
Finding (Information About) Memory Allocations | |
Allocation Annotation | |
Functions | |
bool | libcwd::test_delete (void const *void_ptr) |
Test if a pointer points to the start of an allocated memory block. | |
size_t | libcwd::mem_size (void) |
Returns the total number of allocated bytes. | |
unsigned long | libcwd::mem_blocks (void) |
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.test_delete
also works for invisible memory blocks.
Copyright © 2001 - 2004 Carlo Wood. All rights reserved.