Share via


CMemFile::Memcpy

This function is called by the CMemFile overrides of CFile::Read and CFile::Write to transfer data to and from the memory file.

virtual BYTE* Memcpy( 
   BYTE* lpMemTarget, 
   const BYTE* lpMemSource, 
   SIZE_T nBytes);

Parameters

  • lpMemTarget
    Pointer to the memory block into which the source memory will be copied.

  • lpMemSource
    Pointer to the source memory block.

  • nBytes
    Number of bytes to be copied.

Return Value

A copy of lpMemTarget.

Remarks

Override this function if you want to change the way that CMemFile does these memory copies.

Requirements

Header: afx.h

See Also

Reference

CMemFile Class

Hierarchy Chart

CFile::Read

CFile::Write