CMemFile::GrowFile

This function is called by several of the CMemFile member functions.

virtual void GrowFile( 
   SIZE_T dwNewLen  
);

Parameters

  • dwNewLen
    New size of the memory file.

Remarks

You can override it if you want to change how CMemFile grows its file. The default implementation calls Realloc to grow an existing block (or Alloc to create a memory block), allocating memory in multiples of the nGrowBytes value specified in the constructor or Attach call.

Requirements

Header: afx.h

See Also

Reference

CMemFile Class

Hierarchy Chart

CMemFile::Alloc

CMemFile::Realloc

CMemFile::CMemFile

CMemFile::Attach