FreeImage.NET Class Library Reference
![]() | FreeImageCopyMemory Method (IntPtr, IntPtr, Int32) |
Copies a block of memory from one location to another.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)

C#
public static void CopyMemory( IntPtr dest, IntPtr src, int len )
Parameters
- dest
- Type: SystemIntPtr
A pointer to the starting address of the copied block's destination. - src
- Type: SystemIntPtr
A pointer to the starting address of the block of memory to copy. - len
- Type: SystemInt32
The size of the block of memory to copy, in bytes.

CopyMemory runs faster than MoveMemory(IntPtr, IntPtr, UInt32).
However, if both blocks overlap the result is undefined.
