Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Grow() [2/2]

Definition at line 70 of file ValueListBuilder.cs.

71 {
72 T[] array = ArrayPool<T>.Shared.Rent(_span.Length * 2);
73 bool flag = _span.TryCopyTo(array);
74 T[] arrayFromPool = _arrayFromPool;
76 if (arrayFromPool != null)
77 {
78 ArrayPool<T>.Shared.Return(arrayFromPool);
79 }
80 }
static ArrayPool< T > Shared
Definition ArrayPool.cs:7

References System.Collections.Generic.ValueListBuilder< T >._arrayFromPool, System.Collections.Generic.ValueListBuilder< T >._span, and System.array.