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