Implemented interface member:
method
GetMemory
System.Buffers.IBufferWriter<T>.GetMemory(System.Int32)
22 overrides of GetMemory
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
57public override Memory<byte> GetMemory(int sizeHint = 0)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
56public override Memory<byte> GetMemory(int sizeHint = 0) => _output.GetMemory(sizeHint);
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
280public override Memory<byte> GetMemory(int sizeHint = 0) => _buffer;
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http\HttpResponsePipeWriter.cs (1)
52public override Memory<byte> GetMemory(int sizeHint = 0)
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
68public override Memory<byte> GetMemory(int sizeHint = 0)
Internal\Infrastructure\StatusCheckPipeWriter.cs (1)
64public override Memory<byte> GetMemory(int sizeHint = 0)
Internal\Infrastructure\ThrowingPipeWriter.cs (1)
25public override Memory<byte> GetMemory(int sizeHint = 0) => throw new InvalidOperationException(_message);
Internal\Infrastructure\WrappingPipeWriter.cs (1)
46public override Memory<byte> GetMemory(int sizeHint = 0)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
ConcurrentPipeWriterTests.cs (1)
441public override Memory<byte> GetMemory(int sizeHint = 0)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
56public override Memory<byte> GetMemory(int sizeHint = 0) => _output.GetMemory(sizeHint);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
Mocks\NullPipeWriter.cs (1)
33public override Memory<byte> GetMemory(int sizeHint = 0)
ResponseHeadersWritingBenchmark.cs (1)
199public override Memory<byte> GetMemory(int sizeHint = 0) => _memory;
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
57public override Memory<byte> GetMemory(int sizeHint = 0)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
57public override Memory<byte> GetMemory(int sizeHint = 0)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Shared\TestPipeWriter.cs (1)
19public override Memory<byte> GetMemory(int sizeHint = 0)
Microsoft.AspNetCore.TestHost (1)
ResponseBodyPipeWriter.cs (1)
87public override Memory<byte> GetMemory(int sizeHint = 0)
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
145public override Memory<byte> GetMemory(int sizeHint = MinimumBufferSize)
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
56public override Memory<byte> GetMemory(int sizeHint = 0) => _output.GetMemory(sizeHint);
src\Servers\Kestrel\test\FunctionalTests\ConnectionMiddlewareTests.cs (1)
157public override Memory<byte> GetMemory(int sizeHint = 0)
System.IO.Pipelines (2)
System\IO\Pipelines\Pipe.DefaultPipeWriter.cs (1)
36public override Memory<byte> GetMemory(int sizeHint = 0) => _pipe.GetMemory(sizeHint);
System\IO\Pipelines\StreamPipeWriter.cs (1)
84public override Memory<byte> GetMemory(int sizeHint = 0)
System.Text.Json (1)
src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
145public override Memory<byte> GetMemory(int sizeHint = MinimumBufferSize)
126 references to GetMemory
ClientSample (1)
Tcp\TcpConnection.cs (1)
162var buffer = _application.Output.GetMemory();
InMemory.FunctionalTests (77)
ChunkedResponseTests.cs (22)
202var memory = httpContext.Response.BodyWriter.GetMemory(length); 244var memory = httpContext.Response.BodyWriter.GetMemory(100000); 578var memory = response.BodyWriter.GetMemory(); 583memory = response.BodyWriter.GetMemory(); 621var memory = response.BodyWriter.GetMemory(); 626memory = response.BodyWriter.GetMemory(); 666var memory = response.BodyWriter.GetMemory(5000); 674memory = response.BodyWriter.GetMemory(); 722var memory = response.BodyWriter.GetMemory(5000); 730memory = response.BodyWriter.GetMemory(); 778var memory = response.BodyWriter.GetMemory(); 786var secondMemory = response.BodyWriter.GetMemory(6); 833var memory = response.BodyWriter.GetMemory(4096); 922var memory = response.BodyWriter.GetMemory(4096); 961var memory = response.BodyWriter.GetMemory(4096); 1003var memory = response.BodyWriter.GetMemory(0); 1008memory = response.BodyWriter.GetMemory(1000000); 1040var memory = response.BodyWriter.GetMemory(0); 1044memory = response.BodyWriter.GetMemory(1000000); 1076var memory = response.BodyWriter.GetMemory(4096); 1115var memory = response.BodyWriter.GetMemory(4096); 1150var memory = response.BodyWriter.GetMemory(4096);
Http2\Http2ConnectionTests.cs (4)
5902var memory = c.Response.BodyWriter.GetMemory(); 5907memory = c.Response.BodyWriter.GetMemory(); 5958var memory = c.Response.BodyWriter.GetMemory(); 5963memory = c.Response.BodyWriter.GetMemory();
Http2\Http2StreamTests.cs (23)
2987context.Response.BodyWriter.GetMemory(windowSize + 1); 3051var s = context.Response.BodyWriter.GetMemory(1); 3226context.Response.BodyWriter.GetMemory(); 3877var memory = response.BodyWriter.GetMemory(); 3882memory = response.BodyWriter.GetMemory(); 3924var memory = response.BodyWriter.GetMemory(); 3929memory = response.BodyWriter.GetMemory(); 3970var memory = response.BodyWriter.GetMemory(); 3976memory = response.BodyWriter.GetMemory(); 4024var memory = response.BodyWriter.GetMemory(); 4029memory = response.BodyWriter.GetMemory(); 4077var memory = response.BodyWriter.GetMemory(4096); 4171var memory = response.BodyWriter.GetMemory(4096); 4218var memory = response.BodyWriter.GetMemory(0); 4221memory = response.BodyWriter.GetMemory(4096); 4258var memory = response.BodyWriter.GetMemory(0); 4261memory = response.BodyWriter.GetMemory(4096); 4375var memory = response.BodyWriter.GetMemory(4096); 4491var memory = response.BodyWriter.GetMemory(4096); 4576var memory = response.BodyWriter.GetMemory(4096); 5103var memory = context.Response.BodyWriter.GetMemory(12); 5155var buffer = context.Response.BodyWriter.GetMemory(); 5901var memory = response.BodyWriter.GetMemory(sizeHint);
Http3\Http3ConnectionTests.cs (4)
607var memory = c.Response.BodyWriter.GetMemory(); 612memory = c.Response.BodyWriter.GetMemory(); 661var memory = c.Response.BodyWriter.GetMemory(); 666memory = c.Response.BodyWriter.GetMemory();
Http3\Http3StreamTests.cs (3)
1437var memory = context.Response.BodyWriter.GetMemory(12); 1482var buffer = context.Response.BodyWriter.GetMemory(); 2996var memory = context.Response.BodyWriter.GetMemory(sizeHint);
ResponseTests.cs (17)
3717var memory = response.BodyWriter.GetMemory(4096); 3778var memory = response.BodyWriter.GetMemory(4096); 3914var memory = httpContext.Response.BodyWriter.GetMemory(); 3960var memory = httpContext.Response.BodyWriter.GetMemory(); 4013var memory = httpContext.Response.BodyWriter.GetMemory(); 4020var memory = httpContext.Response.BodyWriter.GetMemory(); 4077var memory = httpContext.Response.BodyWriter.GetMemory(); 4146var memory = httpContext.Response.BodyWriter.GetMemory(); // Shouldn't throw 4177var memory = httpContext.Response.BodyWriter.GetMemory(); // Shouldn't throw 4205var memory = httpContext.Response.BodyWriter.GetMemory(); 4211memory = httpContext.Response.BodyWriter.GetMemory(); 4240var memory = httpContext.Response.BodyWriter.GetMemory(); 4276writeEx = Assert.Throws<InvalidOperationException>(() => httpContext.Response.BodyWriter.GetMemory()); 4579var memory = context.Response.BodyWriter.GetMemory(); 4584memory = context.Response.BodyWriter.GetMemory(); 4634var memory = context.Response.BodyWriter.GetMemory(); 4639memory = context.Response.BodyWriter.GetMemory();
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
59return _inner.GetMemory(sizeHint);
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
56public override Memory<byte> GetMemory(int sizeHint = 0) => _output.GetMemory(sizeHint);
src\Servers\Kestrel\shared\test\TestApp.cs (2)
54var memory = response.BodyWriter.GetMemory(buffer.Length); 72var memory = response.BodyWriter.GetMemory(bytes.Length);
Interop.FunctionalTests (2)
Http2\Http2RequestTests.cs (1)
243var memory = c.Response.BodyWriter.GetMemory(randomBytes.Length);
Http3\Http3RequestTests.cs (1)
1187var memory = context.Response.BodyWriter.GetMemory();
Microsoft.AspNetCore.Http.Connections (1)
Internal\Transports\WebSocketsServerTransport.cs (1)
148var memory = _application.Output.GetMemory();
Microsoft.AspNetCore.Http.Connections.Client (1)
Internal\WebSocketsTransport.cs (1)
458var memory = _application.Output.GetMemory();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
ResponseBodyTests.cs (2)
76var memory = writer.GetMemory(); 96var memory = writer.GetMemory();
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.IO.cs (1)
103var memory = _bodyInputPipe!.Writer.GetMemory();
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http2\Http2Connection.cs (1)
1865var outputBuffer = writer.GetMemory(_minAllocBufferSize);
Internal\Http3\Http3OutputProducer.cs (1)
209return _pipeWriter.GetMemory(sizeHint);
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
72return _innerPipeWriter.GetMemory(sizeHint);
Internal\Infrastructure\StatusCheckPipeWriter.cs (1)
67return _inner.GetMemory(sizeHint);
Internal\Infrastructure\WrappingPipeWriter.cs (1)
48return _inner.GetMemory(sizeHint);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (22)
BodyControlTests.cs (1)
134Assert.Throws<ObjectDisposedException>(() => responsePipe.GetMemory());
BufferWriterTests.cs (4)
134Memory<byte> memory = Pipe.Writer.GetMemory(); 160int initialLength = Pipe.Writer.GetMemory().Length; 169int initialLength = Pipe.Writer.GetMemory().Length; 178Assert.Equal(Pipe.Writer.GetMemory().Length, writer.Span.Length);
ConcurrentPipeWriterTests.cs (13)
36var memory = concurrentPipeWriter.GetMemory(); 52var memory = concurrentPipeWriter.GetMemory(); 101var memory = concurrentPipeWriter.GetMemory(); 113memory = concurrentPipeWriter.GetMemory(); 133var memory = concurrentPipeWriter.GetMemory(); 199memory = concurrentPipeWriter.GetMemory(); 210memory = concurrentPipeWriter.GetMemory(); 226memory = concurrentPipeWriter.GetMemory(); 282memory = concurrentPipeWriter.GetMemory(); 293memory = concurrentPipeWriter.GetMemory(); 311memory = concurrentPipeWriter.GetMemory(); 351var memory = concurrentPipeWriter.GetMemory(); 363memory = concurrentPipeWriter.GetMemory();
HttpResponsePipeWriterTests.cs (1)
29var ex = Assert.Throws<ObjectDisposedException>(() => { pipeWriter.GetMemory(); });
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
56public override Memory<byte> GetMemory(int sizeHint = 0) => _output.GetMemory(sizeHint);
src\Servers\Kestrel\shared\test\TestApp.cs (2)
54var memory = response.BodyWriter.GetMemory(buffer.Length); 72var memory = response.BodyWriter.GetMemory(bytes.Length);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
PipeThroughputBenchmark.cs (2)
33_pipe.Writer.GetMemory(_writeLength); 58_pipe.Writer.GetMemory(_writeLength);
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
59return _inner.GetMemory(sizeHint);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnection.cs (1)
87var buffer = input.GetMemory(MinAllocBufferSize);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Internal\QuicStreamContext.cs (1)
213var buffer = input.GetMemory(MinAllocBufferSize);
src\Servers\Kestrel\shared\CompletionPipeWriter.cs (1)
59return _inner.GetMemory(sizeHint);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Internal\SocketConnection.cs (1)
152var buffer = Input.GetMemory(MinAllocBufferSize);
Microsoft.AspNetCore.TestHost (1)
ResponseBodyPipeWriter.cs (1)
90return _pipe.Writer.GetMemory(sizeHint);
Microsoft.AspNetCore.TestHost.Tests (2)
ResponseBodyTests.cs (2)
22length = writer.GetMemory().Length; 40length = writer.GetMemory().Length;
Sockets.FunctionalTests (3)
src\Servers\Kestrel\shared\test\PassThroughConnectionMiddleware.cs (1)
56public override Memory<byte> GetMemory(int sizeHint = 0) => _output.GetMemory(sizeHint);
src\Servers\Kestrel\shared\test\TestApp.cs (2)
54var memory = response.BodyWriter.GetMemory(buffer.Length); 72var memory = response.BodyWriter.GetMemory(bytes.Length);
System.IO.Pipelines (1)
System\IO\Pipelines\PipeWriter.cs (1)
127Memory<byte> buffer = GetMemory();