Click or drag to resize

MemCopy Function

Copy one memory buffer to another.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION MemCopy(
	pDestination AS IntPtr,
	pSource AS IntPtr,
	dwCount AS DWORD
) AS IntPtr

Parameters

pDestination
Type: IntPtr
A pointer to the destination memory buffer.
pSource
Type: IntPtr
A pointer to the source to copy.
dwCount
Type: UInt32
The number of bytes to copy.

Return Value

Type: IntPtr
A pointer to the destination memory buffer.
Remarks
MemCopy() copies the specified number of bytes from the source memory buffer to the destination memory buffer. If portions of memory occupied by the source string overlap with portions in the destination, the overlapping region is overwritten. Use MemMove() to copy overlapping regions before they are overwritten.
See Also