23 implementations of IBufferWriter
Microsoft.AspNetCore.Components.Server (3)
BlazorPack\SequenceOfT.cs (1)
21internal sealed class Sequence<T> : IBufferWriter<T>, IDisposable
src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
31internal sealed class BufferWriter<T> : IBufferWriter<T>
Microsoft.AspNetCore.Http.Connections (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.HttpLogging (1)
BufferingStream.cs (1)
13internal abstract class BufferingStream : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.OpenApi (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.OutputCaching (1)
RecyclableArrayBufferWriter.cs (1)
12internal sealed class RecyclableArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.SignalR.Client.Tests (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\Utf8BufferTextWriterTests.cs (1)
343private sealed class TestMemoryBufferWriter : IBufferWriter<byte>
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.Extensions.Caching.Hybrid (1)
Internal\RecyclableArrayBufferWriter.cs (1)
15internal sealed class RecyclableArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
31internal sealed class BufferWriter<T> : IBufferWriter<T>
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
31internal sealed class BufferWriter<T> : IBufferWriter<T>
Shared (1)
BufferWriterPool\BufferWriter.cs (1)
31internal sealed class BufferWriter<T> : IBufferWriter<T>
System.IO.Pipelines (1)
System\IO\Pipelines\PipeWriter.cs (1)
11public abstract partial class PipeWriter : IBufferWriter<byte>
System.Memory (1)
src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (1)
16sealed class ArrayBufferWriter<T> : IBufferWriter<T>
System.Net.ServerSentEvents (1)
System\Net\ServerSentEvents\PooledByteBufferWriter.cs (1)
9internal sealed class PooledByteBufferWriter : IBufferWriter<byte>, IDisposable
244 references to IBufferWriter
http2cat (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
IIS.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
IIS.LongTests (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
IIS.NewHandler.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
IIS.NewShim.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
IIS.ShadowCopy.Tests (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
IISExpress.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
JwtBearerSample (1)
Startup.cs (1)
96private void Serialize(IList<Todo> todos, IBufferWriter<byte> output)
Microsoft.Analyzers.Local.Tests (1)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (1)
94Assembly.GetAssembly(typeof(IBufferWriter<>))!,
Microsoft.AspNetCore.Components.Server (24)
BlazorPack\BlazorPackHubProtocol.cs (1)
43public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
335public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
11public static void WriteLengthPrefix(long length, IBufferWriter<byte> output)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\BufferWriter.cs (12)
15/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 20/// The underlying <see cref="IBufferWriter{T}"/>. 22private IBufferWriter<byte> _output; 25/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 31/// The result of the last call to <see cref="IBufferWriter{T}.GetMemory(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 53/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 55public BufferWriter(IBufferWriter<byte> output) 72/// <param name="sequencePool">The pool from which to draw an <see cref="IBufferWriter{T}"/> if required..</param> 88/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 98/// Gets the <see cref="IBufferWriter{T}"/> underlying this instance. 100internal IBufferWriter<byte> UnderlyingWriter => _output; 126/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (6)
38public MessagePackWriter(IBufferWriter<byte> writer) 48/// <param name="sequencePool">The pool from which to draw an <see cref="IBufferWriter{T}"/> if required..</param> 73public MessagePackWriter Clone(IBufferWriter<byte> writer) => new MessagePackWriter(writer) 80/// Ensures everything previously written has been flushed to the underlying <see cref="IBufferWriter{T}"/>. 1066/// <seealso cref="IBufferWriter{T}.GetSpan(int)"/> 1073/// <seealso cref="IBufferWriter{T}.Advance(int)"/>
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequencePool.cs (1)
31/// or by supplying their own <see cref="IBufferWriter{T}" />.
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\Utilities.cs (1)
36internal static Memory<T> GetMemoryCheckResult<T>(this IBufferWriter<T> bufferWriter, int size = 0)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
110/// Notifies <see cref="IBufferWriter{T}"/> that <paramref name="count"/> amount of data was written to the output <see cref="Span{T}"/>/<see cref="Memory{T}"/>.
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (1)
406private static void WriteNegotiatePayload(IBufferWriter<byte> writer, string? connectionId, string? connectionToken, HttpContext context, HttpConnectionDispatcherOptions options,
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
Microsoft.AspNetCore.Http.Connections.Common (6)
NegotiateProtocol.cs (1)
48public static void WriteResponse(NegotiationResponse response, IBufferWriter<byte> output)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
22public ReusableUtf8JsonWriter(IBufferWriter<byte> stream) 33public static ReusableUtf8JsonWriter Get(IBufferWriter<byte> stream)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (3)
23private IBufferWriter<byte>? _bufferWriter; 38public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter) 74public void SetWriter(IBufferWriter<byte> bufferWriter)
Microsoft.AspNetCore.OpenApi (4)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (3)
23private IBufferWriter<byte>? _bufferWriter; 38public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter) 74public void SetWriter(IBufferWriter<byte> bufferWriter)
Microsoft.AspNetCore.OutputCaching (4)
FormatterBinaryWriter.cs (2)
20private readonly IBufferWriter<byte> target; 24public FormatterBinaryWriter(IBufferWriter<byte> target)
IOutputCacheBufferStore.cs (1)
10/// Represents a store for cached responses that uses a <see cref="IBufferWriter{Byte}"/> as the target.
OutputCacheEntryFormatter.cs (1)
117private static void Serialize(IBufferWriter<byte> output, OutputCacheEntry entry)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
Microsoft.AspNetCore.Server.IIS (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
Microsoft.AspNetCore.Server.Kestrel.Core (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
Microsoft.AspNetCore.Shared.Tests (7)
src\Shared\ServerInfrastructure\BufferWriter.cs (7)
9/// A fast access struct that wraps <see cref="IBufferWriter{T}"/>. 12internal ref struct BufferWriter<T> where T : IBufferWriter<byte> 15/// The underlying <see cref="IBufferWriter{T}"/>. 20/// The result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>, less any bytes already "consumed" with <see cref="Advance(int)"/>. 39/// <param name="output">The <see cref="IBufferWriter{T}"/> to be wrapped.</param> 50/// Gets the result of the last call to <see cref="IBufferWriter{T}.GetSpan(int)"/>. 60/// Calls <see cref="IBufferWriter{T}.Advance(int)"/> on the underlying writer
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubProtocolVersionTests.cs (1)
226public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
VersionJsonHubProtocol.cs (1)
71public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
HubConnectionTests.cs (1)
1011public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
14public static void WriteRecordSeparator(IBufferWriter<byte> output)
Microsoft.AspNetCore.SignalR.Common (10)
Protocol\HandshakeProtocol.cs (2)
56public static void WriteRequestMessage(HandshakeRequestMessage requestMessage, IBufferWriter<byte> output) 84public static void WriteResponseMessage(HandshakeResponseMessage responseMessage, IBufferWriter<byte> output)
Protocol\IHubProtocol.cs (1)
45void WriteMessage(HubMessage message, IBufferWriter<byte> output);
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
22public ReusableUtf8JsonWriter(IBufferWriter<byte> stream) 33public static ReusableUtf8JsonWriter Get(IBufferWriter<byte> stream)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
14public static void WriteRecordSeparator(IBufferWriter<byte> output)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (3)
23private IBufferWriter<byte>? _bufferWriter; 38public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter) 74public void SetWriter(IBufferWriter<byte> bufferWriter)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
11public static void WriteLengthPrefix(long length, IBufferWriter<byte> output)
Microsoft.AspNetCore.SignalR.Microbenchmarks (5)
DefaultHubDispatcherBenchmark.cs (1)
73public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
RedisHubLifetimeManagerBenchmark.cs (1)
191public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
RedisProtocolBenchmark.cs (1)
145public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
11public static void WriteLengthPrefix(long length, IBufferWriter<byte> output)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
14public static void WriteRecordSeparator(IBufferWriter<byte> output)
Microsoft.AspNetCore.SignalR.Protocols.Json (8)
Protocol\JsonHubProtocol.cs (2)
103public void WriteMessage(HubMessage message, IBufferWriter<byte> output) 516private void WriteMessageCore(HubMessage message, IBufferWriter<byte> stream)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
22public ReusableUtf8JsonWriter(IBufferWriter<byte> stream) 33public static ReusableUtf8JsonWriter Get(IBufferWriter<byte> stream)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
14public static void WriteRecordSeparator(IBufferWriter<byte> output)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (3)
23private IBufferWriter<byte>? _bufferWriter; 38public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter) 74public void SetWriter(IBufferWriter<byte> bufferWriter)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (4)
Protocol\MessagePackHubProtocol.cs (1)
64public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
Protocol\MessagePackHubProtocolWorker.cs (1)
335public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
11public static void WriteLengthPrefix(long length, IBufferWriter<byte> output)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (7)
Protocol\NewtonsoftJsonHubProtocol.cs (2)
102public void WriteMessage(HubMessage message, IBufferWriter<byte> output) 513private void WriteMessageCore(HubMessage message, IBufferWriter<byte> stream)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
src\SignalR\common\Shared\TextMessageFormatter.cs (1)
14public static void WriteRecordSeparator(IBufferWriter<byte> output)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (3)
23private IBufferWriter<byte>? _bufferWriter; 38public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter) 74public void SetWriter(IBufferWriter<byte> bufferWriter)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
DefaultHubMessageSerializerTests.cs (1)
160public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
Microsoft.AspNetCore.SignalR.Tests (1)
AddSignalRTests.cs (1)
351public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
DummyHubProtocol.cs (1)
42public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
Microsoft.Extensions.Caching.Abstractions (3)
Hybrid\IHybridCacheSerializer.cs (1)
22void Serialize(T value, IBufferWriter<byte> target);
IBufferDistributedCache.cs (2)
22bool TryGet(string key, IBufferWriter<byte> destination); 32ValueTask<bool> TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token = default);
Microsoft.Extensions.Caching.Hybrid (3)
Internal\DefaultJsonSerializerFactory.cs (1)
31void IHybridCacheSerializer<T>.Serialize(T value, IBufferWriter<byte> target)
Internal\InbuiltTypeSerializer.cs (2)
39void IHybridCacheSerializer<string>.Serialize(string value, IBufferWriter<byte> target) 56void IHybridCacheSerializer<byte[]>.Serialize(byte[] value, IBufferWriter<byte> target)
Microsoft.Extensions.Caching.Hybrid.Tests (6)
BufferReleaseTests.cs (3)
91bool IBufferDistributedCache.TryGet(string key, IBufferWriter<byte> destination) 94async ValueTask<bool> IBufferDistributedCache.TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token) 97private static bool Write(IBufferWriter<byte> destination, byte[]? buffer)
L2Tests.cs (2)
178bool IBufferDistributedCache.TryGet(string key, IBufferWriter<byte> destination) 192async ValueTask<bool> IBufferDistributedCache.TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token)
ServiceConstructionTests.cs (1)
244void IHybridCacheSerializer<Customer>.Serialize(Customer value, IBufferWriter<byte> target) => throw new NotSupportedException();
Microsoft.Extensions.Caching.SqlServer (9)
DatabaseOperations.cs (5)
84public bool TryGetCacheItem(string key, IBufferWriter<byte> destination) 96public async Task<bool> TryGetCacheItemAsync(string key, IBufferWriter<byte> destination, CancellationToken token = default(CancellationToken)) 209private byte[]? GetCacheItem(string key, bool includeValue, IBufferWriter<byte>? destination = null) 260private async Task<byte[]?> GetCacheItemAsync(string key, bool includeValue, IBufferWriter<byte>? destination = null, CancellationToken token = default(CancellationToken)) 313private static long StreamOut(SqlDataReader source, int ordinal, IBufferWriter<byte> destination)
IDatabaseOperations.cs (2)
16bool TryGetCacheItem(string key, IBufferWriter<byte> destination); 20Task<bool> TryGetCacheItemAsync(string key, IBufferWriter<byte> destination, CancellationToken token = default(CancellationToken));
SqlServerCache.cs (2)
86bool IBufferDistributedCache.TryGet(string key, IBufferWriter<byte> destination) 112async ValueTask<bool> IBufferDistributedCache.TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
RedisCache.cs (2)
694bool IBufferDistributedCache.TryGet(string key, IBufferWriter<byte> destination) 740async ValueTask<bool> IBufferDistributedCache.TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
110/// Notifies <see cref="IBufferWriter{T}"/> that <paramref name="count"/> amount of data was written to the output <see cref="Span{T}"/>/<see cref="Memory{T}"/>.
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
110/// Notifies <see cref="IBufferWriter{T}"/> that <paramref name="count"/> amount of data was written to the output <see cref="Span{T}"/>/<see cref="Memory{T}"/>.
mscorlib (1)
mscorlib.cs (1)
35[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.IBufferWriter<>))]
netstandard (1)
netstandard.cs (1)
63[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.IBufferWriter<>))]
Shared (1)
BufferWriterPool\BufferWriter.cs (1)
110/// Notifies <see cref="IBufferWriter{T}"/> that <paramref name="count"/> amount of data was written to the output <see cref="Span{T}"/>/<see cref="Memory{T}"/>.
System.Memory (12)
src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (1)
115/// Notifies <see cref="IBufferWriter{T}"/> that <paramref name="count"/> amount of data was written to the output <see cref="Span{T}"/>/<see cref="Memory{T}"/>
System\Buffers\BuffersExtensions.cs (2)
116public static void Write<T>(this IBufferWriter<T> writer, ReadOnlySpan<T> value) 132private static void WriteMultiSegment<T>(IBufferWriter<T> writer, in ReadOnlySpan<T> source, Span<T> destination)
System\Buffers\IBufferWriter.cs (1)
12/// Notifies <see cref="IBufferWriter{T}"/> that <paramref name="count"/> amount of data was written to the output <see cref="Span{T}"/>/<see cref="Memory{T}"/>
System\Text\EncodingExtensions.cs (8)
34public static long GetBytes(this Encoding encoding, ReadOnlySpan<char> chars, IBufferWriter<byte> writer) 70public static long GetBytes(this Encoding encoding, in ReadOnlySequence<char> chars, IBufferWriter<byte> writer) 225public static long GetChars(this Encoding encoding, ReadOnlySpan<byte> bytes, IBufferWriter<char> writer) 261public static long GetChars(this Encoding encoding, in ReadOnlySequence<byte> bytes, IBufferWriter<char> writer) 414public static void Convert(this Encoder encoder, ReadOnlySpan<char> chars, IBufferWriter<byte> writer, bool flush, out long bytesUsed, out bool completed) 461public static void Convert(this Encoder encoder, in ReadOnlySequence<char> chars, IBufferWriter<byte> writer, bool flush, out long bytesUsed, out bool completed) 507public static void Convert(this Decoder decoder, ReadOnlySpan<byte> bytes, IBufferWriter<char> writer, bool flush, out long charsUsed, out bool completed) 555public static void Convert(this Decoder decoder, in ReadOnlySequence<byte> bytes, IBufferWriter<char> writer, bool flush, out long charsUsed, out bool completed)
System.Net.Security (18)
System\Net\NegotiateAuthenticationPal.cs (3)
23public abstract NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted); 24public abstract NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted); 26public abstract void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (3)
751public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) 762public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool _/*requestEncryption*/, out bool isEncrypted) 780public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted)
System\Net\NegotiateAuthenticationPal.ManagedSpnego.cs (3)
404public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 414public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 444public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature)
System\Net\NegotiateAuthenticationPal.Unix.cs (3)
332public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 363public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 422public override unsafe void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature)
System\Net\NegotiateAuthenticationPal.Unsupported.cs (3)
52public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) => throw new InvalidOperationException(); 53public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) => throw new InvalidOperationException(); 55public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) => throw new InvalidOperationException();
System\Net\Security\NegotiateAuthentication.cs (3)
290public NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 317public NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 369public void ComputeIntegrityCheck(ReadOnlySpan<byte> message, IBufferWriter<byte> signatureWriter)
System.Net.ServerSentEvents (5)
System\Net\ServerSentEvents\Helpers.cs (3)
17public static void WriteUtf8Number(this IBufferWriter<byte> writer, long value) 32public static void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<byte> value) 45public static unsafe void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<char> value)
System\Net\ServerSentEvents\SseFormatter.cs (2)
51public static Task WriteAsync<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken = default) 71private static async Task WriteAsyncCore<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken)
System.Text.Json (16)
System\Text\Json\Writer\Utf8JsonWriter.cs (15)
48private IBufferWriter<byte>? _output; 222/// <param name="bufferWriter">An instance of <see cref="IBufferWriter{Byte}" /> used as a destination for writing JSON text into.</param> 227/// Thrown when the instance of <see cref="IBufferWriter{Byte}" /> that is passed in is null. 229public Utf8JsonWriter(IBufferWriter<byte> bufferWriter, JsonWriterOptions options = default) 286/// and the original output as the destination (either <see cref="IBufferWriter{Byte}" /> or <see cref="Stream" />). 337/// Resets the <see cref="Utf8JsonWriter"/> internal state so that it can be re-used with the new instance of <see cref="IBufferWriter{Byte}" />. 339/// <param name="bufferWriter">An instance of <see cref="IBufferWriter{Byte}" /> used as a destination for writing JSON text into.</param> 342/// but now write to the passed in <see cref="IBufferWriter{Byte}" /> as the new destination. 345/// Thrown when the instance of <see cref="IBufferWriter{Byte}" /> that is passed in is null. 350public void Reset(IBufferWriter<byte> bufferWriter) 370internal void Reset(IBufferWriter<byte> bufferWriter, JsonWriterOptions options) 413/// In the case of IBufferWriter, this advances the underlying <see cref="IBufferWriter{Byte}" /> based on what has been written so far. 466/// In the case of IBufferWriter, this advances the underlying <see cref="IBufferWriter{Byte}" /> based on what has been written so far. 497/// In the case of IBufferWriter, this advances the underlying <see cref="IBufferWriter{Byte}" /> based on what has been written so far. 527/// In the case of IBufferWriter, this advances the underlying <see cref="IBufferWriter{Byte}" /> based on what has been written so far.
System\Text\Json\Writer\Utf8JsonWriterCache.cs (1)
44public static Utf8JsonWriter RentWriter(JsonSerializerOptions options, IBufferWriter<byte> bufferWriter)