.NET 6 adds malloc support in C# ! #Shorts Nick Chapsas 1 year ago .NET 6 adds malloc support in C# ! #Shorts .NET 6 adds the NativeMemory class which offers a thin wrapper around the C malloc API. Here is how you can use it.