19 references to Span
Microsoft.AspNetCore.Server.Kestrel.Core (8)
Internal\Http\ChunkWriter.cs (2)
142var count = BeginChunkBytes(dataCount, start.Span); 150var span = start.Span;
src\Shared\ServerInfrastructure\BufferExtensions.cs (5)
117var dest = buffer.Span; 136var buffer = bufferWriter.Span; 198var dest = buffer.Span; 220var bytes = buffer.Span; 244bytes = buffer.Span;
src\Shared\ServerInfrastructure\BufferWriter.cs (1)
21/// Backing field for the <see cref="Span"/> property.
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
BufferWriterTests.cs (4)
152Assert.True(writer.Span.Length > 10); 162Assert.Equal(initialLength, writer.Span.Length); 177Assert.Equal(initialLength - 3, writer.Span.Length); 178Assert.Equal(Pipe.Writer.GetMemory().Length, writer.Span.Length);
PipelineExtensionTests.cs (7)
79var spacer = new byte[writer.Span.Length - gapSize]; 82var bufferLength = writer.Span.Length; 84Assert.NotEqual(bufferLength, writer.Span.Length); 183var spacer = new byte[writer.Span.Length - gapSize]; 185Assert.Equal(gapSize, writer.Span.Length); 187var bufferLength = writer.Span.Length; 189Assert.NotEqual(bufferLength, writer.Span.Length);