Beispiel #1
0
 public static IntPtr Copy(byte *dest, byte *src, long count)
 {
     Debug.Assert(count >= 0);
     return(PlatformDetails.RunningOnPosix
         ? Syscall.Copy(dest, src, count)
         : Win32UnmanagedMemory.Copy(dest, src, count));
 }
Beispiel #2
0
 public static IntPtr Copy(byte *dest, byte *src, int count)
 {
     return(Platform.RunningOnPosix
         ? PosixUnmanagedMemory.Copy(dest, src, count)
         : Win32UnmanagedMemory.Copy(dest, src, count));
 }