The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
IAtlMemMgr::Reallocate
Call this method to reallocate memory allocated by this memory manager.
void* Reallocate(
void* p,
size_t nBytes
) throw( );
- p
Pointer to memory previously allocated by this memory manager.
- nBytes
The requested number of bytes in the new memory block.
Returns a pointer to the start of the newly allocated memory block.
Call IAtlMemMgr::Free or 2e2696ac-5b43-40c5-b41d-63122ee794f0#vclrfiatlmemmgrreallocate to free the memory allocated by this method.
Conceptually this method frees the existing memory and allocates a new memory block. In reality, the existing memory may be extended or otherwise reused.
Example
For an example, see the IAtlMemMgr Overview.
Requirements
Header: atlmem.h
Show: