23 implementations of GetSpan
Microsoft.AspNetCore.Components.Server (3)
BlazorPack\SequenceOfT.cs (1)
184public Span<T> GetSpan(int sizeHint) => this.GetSegment(sizeHint).RemainingSpan;
src\Shared\PooledArrayBufferWriter.cs (1)
134public Span<T> GetSpan(int sizeHint = 0)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
158public Span<T> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.Http.Connections (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.HttpLogging (1)
BufferingStream.cs (1)
124public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\Shared\PooledArrayBufferWriter.cs (1)
134public Span<T> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.OpenApi (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.OutputCaching (1)
RecyclableArrayBufferWriter.cs (1)
70public Span<T> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\Utf8BufferTextWriterTests.cs (1)
384public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
116public Span<byte> GetSpan(int sizeHint = 0)
Microsoft.Extensions.Caching.Hybrid (1)
Internal\RecyclableArrayBufferWriter.cs (1)
123public Span<T> GetSpan(int sizeHint = 0)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
158public Span<T> GetSpan(int sizeHint = 0)
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
158public Span<T> GetSpan(int sizeHint = 0)
Shared (1)
BufferWriterPool\BufferWriter.cs (1)
158public Span<T> GetSpan(int sizeHint = 0)
System.IO.Pipelines (1)
System\IO\Pipelines\PipeWriter.cs (1)
81public abstract Span<byte> GetSpan(int sizeHint = 0);
System.Memory (1)
src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (1)
192public Span<T> GetSpan(int sizeHint = 0)
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\PooledByteBufferWriter.cs (1)
22public Span<byte> GetSpan(int sizeHint = 0)
68 references to GetSpan
http2cat (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
IIS.FunctionalTests (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
IIS.LongTests (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
IIS.NewHandler.FunctionalTests (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
IIS.NewShim.FunctionalTests (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
IIS.ShadowCopy.Tests (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
IISExpress.FunctionalTests (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
Microsoft.AspNetCore.Components.Server (4)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (3)
25/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 88/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 254var realSpan = _output.GetSpan(_buffered);
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (1)
1066/// <seealso cref="IBufferWriter{T}.GetSpan(int)"/>
Microsoft.AspNetCore.OutputCaching (1)
FormatterBinaryWriter.cs (1)
110var span = target.GetSpan(1024); // fairly arbitrary non-trivial buffer; we can explore larger if useful
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
Microsoft.AspNetCore.Server.IIS (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
Microsoft.AspNetCore.Server.Kestrel.Core (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\ServerInfrastructure\BufferWriter.cs (4)
20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 46_span = output.GetSpan(); 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 129_span = _output.GetSpan(count);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
16var buffer = output.GetSpan(1);
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
16var buffer = output.GetSpan(1);
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
16var buffer = output.GetSpan(1);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
16var buffer = output.GetSpan(1);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
16var buffer = output.GetSpan(1);
System.Memory (6)
System\Buffers\BuffersExtensions.cs (2)
118Span<T> destination = writer.GetSpan(); 143destination = writer.GetSpan();
System\Text\EncodingExtensions.cs (4)
44Span<byte> scratchBuffer = writer.GetSpan(byteCount); 235Span<char> scratchBuffer = writer.GetSpan(charCount); 436Span<byte> scratchBuffer = writer.GetSpan(byteCountForThisSlice); 529Span<char> scratchBuffer = writer.GetSpan(charCountForThisSlice);
System.Net.Security (5)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (3)
756Span<byte> signatureBuffer = signature.GetSpan(SignatureLength); 769Span<byte> output = outputWriter.GetSpan(input.Length + SignatureLength); 794Span<byte> output = outputWriter.GetSpan(input.Length - SignatureLength);
System\Net\NegotiateAuthenticationPal.Unix.cs (2)
353encryptedBuffer.Span.CopyTo(outputWriter.GetSpan(encryptedBuffer.Span.Length)); 381decryptedBuffer.Span.CopyTo(outputWriter.GetSpan(decryptedBuffer.Span.Length));
System.Net.ServerSentEvents (3)
System\Net\ServerSentEvents\Helpers.cs (3)
21Span<byte> buffer = writer.GetSpan(MaxDecimalDigits); 39Span<byte> buffer = writer.GetSpan(value.Length); 53Span<byte> buffer = writer.GetSpan(maxByteCount);