IMalloc::GetSize
Returns the
size (in bytes) of a memory block previously allocated with IMalloc::Alloc
ULONG GetSize(
void *pv |
//Pointer to the memory block for which the size is
requested |
); |
|
Parameter
pv
[in] Pointer
to the memory block for which the size is requested.
Return Value
The size of
the allocated memory block in bytes or, if pv is a NULL pointer, -1.
Remarks
To get the
size in bytes of a memory block, the block must have been previously allocated
with IMalloc::Alloc
See Also