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


CMemFile::Realloc

This function is called by CMemFile member functions.

virtual BYTE* Realloc(
   BYTE* lpMem,
   SIZE_T nBytes 
);

Параметры

  • lpMem
    A pointer to the memory block to be reallocated.

  • nBytes
    New size for the memory block.

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

A pointer to the memory block that was reallocated (and possibly moved), or NULL if the reallocation failed.

Заметки

Override this function to implement custom memory reallocation. If you override this function, you'll probably want to override Alloc and Free as well.

Требования

Header: afx.h

См. также

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

CMemFile Class

CMemFile Members

Hierarchy Chart

CMemFile::Alloc

CMemFile::Free