4 internal static partial class Interop
6 internal static IntPtr MemAlloc(UIntPtr sizeInBytes)
8 if (Environment.IsRunningOnWindows)
9 return Windows_MemAlloc(sizeInBytes);
11 return Unix_MemAlloc(sizeInBytes);
14 internal static void MemFree(IntPtr allocatedMemory)
16 if (Environment.IsRunningOnWindows)
17 Windows_MemFree(allocatedMemory);
19 Unix_MemFree(allocatedMemory);