Table of Contents

Method MoveLong

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

MoveLong(IntPtr, IntPtr, ulong)

Copies count bytes from the object pointed to by src to the object pointed to by dest. Both objects are reinterpreted as arrays of byte.

public static IntPtr MoveLong(IntPtr dest, IntPtr src, ulong count)

Parameters

dest nint

Pointer to the memory location to copy to.

src nint

Pointer to the memory location to copy from.

count ulong

Number of bytes to copy

Returns

nint

Remarks

The objects may overlap: copying takes place as if the bytes were copied to a temporary byte array and then the bytes were copied from the array to dest. If either dest or src is an invalid or null pointer, the behavior is undefined, even if count is zero. If the objects are potentially-overlapping or not trivially copyable, the behavior is not specified and may be undefined.