public static IntPtr Malloc(IntPtr size) { if (OperatingSystem.IsWindows()) { return(Windows.Malloc(size)); } else { return(Unix.Malloc(size)); } }