1 write to Pool
System.IO.Pipelines (1)
System\IO\Pipelines\StreamPipeReaderOptions.cs (1)
36
Pool
= pool ?? MemoryPool<byte>.Shared;
6 references to Pool
System.IO.Pipelines (6)
System\IO\Pipelines\StreamPipeReader.cs (3)
61
private MemoryPool<byte> Pool => _options.
Pool
;
516
int maxSize = !_options.IsDefaultSharedMemoryPool ? _options.
Pool
.MaxBufferSize : -1;
522
nextSegment.SetOwnedMemory(_options.
Pool
.Rent(sizeToRequest));
System\IO\Pipelines\StreamPipeReaderOptions.cs (3)
38
IsDefaultSharedMemoryPool =
Pool
== MemoryPool<byte>.Shared;
55
/// <summary>Gets the minimum buffer size to use when renting memory from the <see cref="System.IO.Pipelines.StreamPipeReaderOptions.
Pool
" />.</summary>
59
/// <summary>Gets the maximum buffer size to use when renting memory from the <see cref="System.IO.Pipelines.StreamPipeReaderOptions.
Pool
" />.</summary>