Пример #1
0
 public static int Move(byte *dest, byte *src, long count)
 {
     Debug.Assert(count >= 0);
     return(PlatformDetails.RunningOnPosix
         ? Syscall.Move(dest, src, count)
         : Win32UnmanagedMemory.Move(dest, src, count));
 }
Пример #2
0
 public static IntPtr Set(byte *dest, int c, long count)
 {
     Debug.Assert(count >= 0);
     return(PlatformDetails.RunningOnPosix
         ? Syscall.Set(dest, c, count)
         : Win32UnmanagedMemory.Set(dest, c, count));
 }
Пример #3
0
 public static int Compare(byte *b1, byte *b2, long count)
 {
     Debug.Assert(count >= 0);
     return(PlatformDetails.RunningOnPosix
         ? Syscall.Compare(b1, b2, count)
         : Win32UnmanagedMemory.Compare(b1, b2, count));
 }