Ejemplo n.º 1
0
 public static IntPtr Remap(IntPtr target, IntPtr source, ulong size)
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ||
         RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
     {
         return(MemoryManagementUnix.Remap(target, source, size));
     }
     else
     {
         throw new PlatformNotSupportedException();
     }
 }
Ejemplo n.º 2
0
 public static IntPtr Remap(IntPtr target, IntPtr source, ulong size)
 {
     if (OperatingSystem.IsLinux() ||
         OperatingSystem.IsMacOS())
     {
         return(MemoryManagementUnix.Remap(target, source, size));
     }
     else
     {
         throw new PlatformNotSupportedException();
     }
 }