Accord.SystemTools.CopyUnmanagedMemory C# (CSharp) Method

CopyUnmanagedMemory() public static method

Copy block of unmanaged memory.

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.

public static CopyUnmanagedMemory ( byte dst, byte src, int count ) : byte*
dst byte Destination pointer.
src byte Source pointer.
count int Memory block's length to copy.
return byte*
        public static unsafe byte* CopyUnmanagedMemory(byte* dst, byte* src, int count)
        {
            return memcpy(dst, src, count);
        }

Same methods

SystemTools::CopyUnmanagedMemory ( IntPtr dst, IntPtr src, int count ) : IntPtr