nn::fnd::HeapBase::FindHeap Member Function

Syntax

HeapBase * FindHeap(
     void * addr
);

Parameters

Name Description
in addr Specifies the starting address of the region to search for.

Return Values

Returns a pointer to the heap to which the specified address belongs. Returns NULL if the target was not found.

Description

Searches for the heap to which the specified address belongs.

When this member function is called on a heap, it searches that heap and any nested heaps for one that contains the specified address. Addresses can be associated with more than one nested heap. This function returns a pointer to the innermost heap that is associated with the specified memory address. Returns NULL if the specified address is not included in a heap.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL