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();
     }
 }
Exemple #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();
     }
 }