Assets/Plugins/Unity.Media.Utilities/Runtime/GrowableBufferExtensions.cs
/// <summary>
/// Copy a GrowableBuffer to a new array
/// </summary>
/// <param name="self">The GrowableBuffer to copy</param>
/// <typeparam name="T">The element type of self</typeparam>
/// <returns>A new array copied from self</returns>
Copy a GrowableBuffer to a new array
Copy a GrowableBuffer to a new array
public static T[] ToArray<T>(this GrowableBuffer<T> self)
            where T : unmanaged
        {
            var array = new T[self.Count];
            self.CopyTo(array, 0);
            return array;
        }
public static T [ ] ToArray < T > ( this GrowableBuffer < T > self ) where T : unmanaged { var array = new T [ self . Count ] ; self . CopyTo ( array , 0 ) ; return array ; }
Copy a GrowableBuffer to a new array
Copy a GrowableBuffer to a new array
A new array copied from self
A new array copied from self
GrowableBuffer<T>
this
self
The GrowableBuffer to copy
The GrowableBuffer to copy
typeparam
The element type of self
The element type of self