Click or drag to resize
Accord.NET (logo)

SystemToolsCopyUnmanagedMemory Method (IntPtr, IntPtr, Int32)

Copy block of unmanaged memory.

Namespace:  Accord
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
public static IntPtr CopyUnmanagedMemory(
	IntPtr dst,
	IntPtr src,
	int count
)
Request Example View Source

Parameters

dst
Type: SystemIntPtr
Destination pointer.
src
Type: SystemIntPtr
Source pointer.
count
Type: SystemInt32
Memory block's length to copy.

Return Value

Type: IntPtr
Return's value of dst - pointer to destination.
Remarks

This function is required because of the fact that .NET does not provide any way to copy unmanaged blocks, but provides only methods to copy from unmanaged memory to managed memory and vise versa.

See Also