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