public static bool Free(IntPtr address, IntPtr size, bool force4KBMap) { if (force4KBMap) { _placeholders4KB.UnmapRange(address, size); } else { _placeholders.UnreserveRange((ulong)address, (ulong)size); } return(WindowsApi.VirtualFree(address, IntPtr.Zero, AllocationType.Release)); }
public static bool Free(IntPtr address, IntPtr size) { _placeholders.UnreserveRange((ulong)address, (ulong)size); return(WindowsApi.VirtualFree(address, IntPtr.Zero, AllocationType.Release)); }