Поделиться через


IAtlStringMgr::Reallocate

Reallocates a string data structure.

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

Параметры

  • 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.

Возвращаемое значение

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

Заметки

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

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

ПримечаниеПримечание.

For usage examples, see Memory Management and CStringT.

Требования

Header: atlsimpstr.h

См. также

Основные понятия

IAtlStringMgr Class

IAtlStringMgr Members