Copies a block of memory from one location to another.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static void CopyMemory(
	byte* dest,
	byte* src,
	int len
)
Visual Basic (Declaration)
Public Shared Sub CopyMemory ( _
	dest As Byte*, _
	src As Byte*, _
	len As Integer _
)
Visual C++
public:
static void CopyMemory(
	unsigned char* dest, 
	unsigned char* src, 
	int len
)

Parameters

dest
Type: System..::.Byte *
A pointer to the starting address of the copied block's destination.
src
Type: System..::.Byte *
A pointer to the starting address of the block of memory to copy.
len
Type: System..::.Int32
The size of the block of memory to copy, in bytes.

Remarks

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

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also