IAtlStringMgr::Reallocate

Reallocates a string data structure.

CStringData* Reallocate(
   CStringData* pData,
   int nAllocLength,
   int nCharSize 
) throw( );

Parameters

  • pData
    Pointer to the memory previously allocated by this memory manager.

  • nAllocLength
    The number of characters in the new memory block.

  • nCharSize
    The size (in bytes) of the character type used by the string manager.

Return Value

Returns a pointer to the start of the newly allocated memory block.

Remarks

Call this function to resize the existing memory block specified by pData.

Call IAtlStringMgr::Free to free the memory allocated by this method.

Note

For usage examples, see Memory Management and CStringT.

Requirements

Header: atlsimpstr.h

See Also

Reference

IAtlStringMgr Class

Other Resources

IAtlStringMgr Members