IMalloc::DidAlloc

Determines if this allocator was used to allocate the specified block of memory.

int DidAlloc(

void *pv
//The pointer to the memory block
);

Parameter

pv

Specifies the pointer to the memory block; can be a NULL pointer, in which case, -1 is returned.

Return Values

The memory block was allocated by this IMalloc instance.

0

The memory block was not allocated by this IMalloc instance.

-1

DidAlloc is unable to determine whether or not it allocated the memory block.

Comments

Calling IMalloc::DidAlloc is useful if a application is using multiple allocations, and needs to know whether a previously allocated block of memory was allocated by a particular allocation.

See Also

IMalloc::Alloc, IMalloc::HeapMinimize, IMalloc::Realloc

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database