public static unsafe void Move(VoidPtr dst, VoidPtr src, uint size) { switch (Environment.OSVersion.Platform) { case PlatformID.Win32NT: Win32.MoveMemory(dst, src, size); break; case PlatformID.MacOSX: OSX.memmove(dst, src, size); break; case PlatformID.Unix: if (Directory.Exists("/Applications") & Directory.Exists("/System") & Directory.Exists("/Users") & Directory.Exists("/Volumes")) { goto case PlatformID.MacOSX; } else { Linux.memmove(dst, src, size); } break; } }
public static unsafe void Move(VoidPtr dst, VoidPtr src, uint size) { switch (Environment.OSVersion.Platform) { case PlatformID.Win32NT: { Win32.MoveMemory(dst, src, size); break; } case PlatformID.MacOSX: { break; } case PlatformID.Unix: { Linux.memmove(dst, src, size); break; } } }