src/AnvilPacker/Util/Mem.cs
/// <summary> Allocates a unmanaged memory block of <paramref name="count"/> <typeparamref name="T"/> elements from the heap, then fills it with the default <typeparamref name="T"/> value. </summary>
/// <remarks>The returned pointer should be released with <see cref="Free{T}(T*)"/> when it is no longer needed.</remarks>
Allocates a unmanaged memory block of   elements from the heap, then fills it with the default  value.
Allocates a unmanaged memory block of elements from the heap then fills it with the default value .
public static T* AllocZeroed<T>(nint count) where T : unmanaged
        {
            T* ptr = Alloc<T>(count);
            Clear(ptr, count);
            return ptr;
        }
public static T * AllocZeroed < T > ( nint count ) where T : unmanaged { T * ptr = Alloc < T > ( count ) ; Clear ( ptr , count ) ; return ptr ; }
Allocates a unmanaged memory block of   elements from the heap, then fills it with the default  value.
Allocates a unmanaged memory block of elements from the heap then fills it with the default value .
count
nint
remarks
The returned pointer should be released with  when it is no longer needed.
The returned pointer should be released with when it is no longer needed .