Copies a block of memory from one location to another.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static void CopyMemory( IntPtr dest, IntPtr src, long size ) |
Visual Basic (Declaration) |
---|
Public Shared Sub CopyMemory ( _ dest As IntPtr, _ src As IntPtr, _ size As Long _ ) |
Visual C++ |
---|
public: static void CopyMemory( IntPtr dest, IntPtr src, long long size ) |
Parameters
- dest
- Type: System..::.IntPtr
A pointer to the starting address of the copied block's destination.
- src
- Type: System..::.IntPtr
A pointer to the starting address of the block of memory to copy.
- size
- Type: System..::.Int64
Remarks
CopyMemory runs faster than MoveMemory(IntPtr, IntPtr, Int64).
However, if both blocks overlap the result is undefined.