diff options
Diffstat (limited to 'ARMeilleure/Memory/MemoryManagement.cs')
| -rw-r--r-- | ARMeilleure/Memory/MemoryManagement.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/ARMeilleure/Memory/MemoryManagement.cs b/ARMeilleure/Memory/MemoryManagement.cs index bf0bd02c..e299ae49 100644 --- a/ARMeilleure/Memory/MemoryManagement.cs +++ b/ARMeilleure/Memory/MemoryManagement.cs @@ -6,8 +6,6 @@ namespace ARMeilleure.Memory { public static class MemoryManagement { - public static bool HasWriteWatchSupport => RuntimeInformation.IsOSPlatform(OSPlatform.Windows); - public static IntPtr Allocate(ulong size) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) @@ -88,27 +86,5 @@ namespace ARMeilleure.Memory throw new PlatformNotSupportedException(); } } - - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool GetModifiedPages( - IntPtr address, - IntPtr size, - IntPtr[] addresses, - out ulong count) - { - // This is only supported on windows, but returning - // false (failed) is also valid for platforms without - // write tracking support on the OS. - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - return MemoryManagementWindows.GetModifiedPages(address, size, addresses, out count); - } - else - { - count = 0; - - return false; - } - } } }
\ No newline at end of file |
