Copies a block of memory from one location to another.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static void CopyMemory( byte* dest, byte* src, long len ) |
Visual Basic (Declaration) |
---|
Public Shared Sub CopyMemory ( _ dest As Byte*, _ src As Byte*, _ len As Long _ ) |
Visual C++ |
---|
public: static void CopyMemory( unsigned char* dest, unsigned char* src, long long 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..::.Int64
The size of the block of memory to copy, in bytes.
Remarks
CopyMemory runs faster than MoveMemory(Void*, Void*, Int64).
However, if both blocks overlap the result is undefined.