2 writes to Data
Microsoft.AspNetCore.Components.Endpoints (2)
FormMapping\Converters\CollectionAdapters\ArrayPoolBufferAdapter.cs (2)
12public static PooledBuffer CreateBuffer() => new() { Data = ArrayPool<TElement>.Shared.Rent(16), Count = 0 }; 21buffer.Data = newBuffer;
8 references to Data
Microsoft.AspNetCore.Components.Endpoints (8)
FormMapping\Converters\CollectionAdapters\ArrayPoolBufferAdapter.cs (8)
16if (buffer.Count >= buffer.Data.Length) 18var newBuffer = ArrayPool<TElement>.Shared.Rent(buffer.Data.Length * 2); 19Array.Copy(buffer.Data, newBuffer, buffer.Data.Length); 20ArrayPool<TElement>.Shared.Return(buffer.Data); 24buffer.Data[buffer.Count++] = element; 30var result = TCollectionFactory.ToResultCore(buffer.Data, buffer.Count); 31ArrayPool<TElement>.Shared.Return(buffer.Data);