25 implementations of IBufferWriter
Microsoft.AspNetCore.Antiforgery (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Components.Server (3)
BlazorPack\SequenceOfT.cs (1)
21internal sealed class Sequence<T> : IBufferWriter<T>, IDisposable
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.DataProtection (2)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Diagnostics.Middleware (1)
src\Shared\BufferWriterPool\BufferWriter.cs (1)
31internal sealed class BufferWriter<T> : IBufferWriter<T>
Microsoft.AspNetCore.Http.Connections (1)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
17internal sealed class MemoryBufferWriter : Stream, IBufferWriter<byte>
Microsoft.AspNetCore.HttpLogging (2)
BufferingStream.cs (1)
13internal abstract class BufferingStream : Stream, IBufferWriter<byte>
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\aspnetcore\src\Shared\PooledArrayBufferWriter.cs (1)
10internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.OutputCaching (1)
RecyclableArrayBufferWriter.cs (1)
12internal sealed class RecyclableArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
PooledArrayBufferWriter`1.cs (1)
17internal sealed class PooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\Buffers\RefPooledArrayBufferWriter.cs (1)
15internal ref struct RefPooledArrayBufferWriter<T> : IBufferWriter<T>, IDisposable
Microsoft.AspNetCore.SignalR.Common (1)
src\aspnetcore\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 (2)
BufferWriterPool\BufferWriter.cs (1)
31internal sealed class BufferWriter<T> : IBufferWriter<T>
ServerSentEvents\PooledByteBufferWriter.cs (1)
11internal sealed class PooledByteBufferWriter : IBufferWriter<byte>, IDisposable
System.IO.Pipelines (1)
System\IO\Pipelines\PipeWriter.cs (1)
11public abstract partial class PipeWriter : IBufferWriter<byte>
System.Memory (1)
src\runtime\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
186 references to IBufferWriter
ILCompiler.Compiler (13)
Compiler\ObjectWriter\Dwarf\DwarfExpressionBuilder.cs (2)
15private readonly IBufferWriter<byte> _writer; 17public DwarfExpressionBuilder(TargetArchitecture architecture, byte targetPointerSize, IBufferWriter<byte> writer)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (2)
49public static void WriteULEB128(IBufferWriter<byte> writer, ulong value) 77public static void WriteSLEB128(IBufferWriter<byte> writer, long value)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
68public IBufferWriter<byte> BufferWriter => _appendBuffer;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (8)
20public readonly IBufferWriter<byte> Buffer => _sectionData.BufferWriter; 81IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 97IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 108IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 116IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 123IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 133IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 143IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter;
ILCompiler.ReadyToRun (11)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (2)
49public static void WriteULEB128(IBufferWriter<byte> writer, ulong value) 77public static void WriteSLEB128(IBufferWriter<byte> writer, long value)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionData.cs (1)
68public IBufferWriter<byte> BufferWriter => _appendBuffer;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\SectionWriter.cs (8)
20public readonly IBufferWriter<byte> Buffer => _sectionData.BufferWriter; 81IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 97IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 108IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 116IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 123IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 133IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter; 143IBufferWriter<byte> bufferWriter = _sectionData.BufferWriter;
Microsoft.Analyzers.Local.Tests (1)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (1)
94Assembly.GetAssembly(typeof(IBufferWriter<>))!,
Microsoft.AspNetCore.Components (3)
IPersistentComponentStateSerializer.cs (1)
10void Persist(Type type, object value, IBufferWriter<byte> writer);
PersistentState\PersistentComponentStateSerializer.cs (2)
19public abstract void Persist(T value, IBufferWriter<byte> writer); 32void IPersistentComponentStateSerializer.Persist(Type type, object value, IBufferWriter<byte> writer)
Microsoft.AspNetCore.Components.Server (24)
BlazorPack\BlazorPackHubProtocol.cs (1)
43public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
335public void WriteMessage(HubMessage message, IBufferWriter<byte> output)
src\aspnetcore\src\SignalR\common\Shared\BinaryMessageFormatter.cs (1)
11public static void WriteLengthPrefix(long length, IBufferWriter<byte> output)
src\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
src\aspnetcore\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\aspnetcore\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\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\SequencePool.cs (1)
31/// or by supplying their own <see cref="IBufferWriter{T}" />.
src\aspnetcore\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.DataProtection (12)
AuthenticatedEncryption\ISpanAuthenticatedEncryptor.cs (2)
38where TWriter : IBufferWriter<byte>, allows ref struct; 57where TWriter : IBufferWriter<byte>, allows ref struct;
Cng\CbcAuthenticatedEncryptor.cs (2)
63public void Decrypt<TWriter>(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte> 252public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
Cng\CngGcmAuthenticatedEncryptor.cs (2)
58public void Decrypt<TWriter>(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte> 218public void Encrypt<TWriter>(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> additionalAuthenticatedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
KeyManagement\KeyRingBasedSpanDataProtector.cs (2)
25public void Protect<TWriter>(ReadOnlySpan<byte> plaintext, ref TWriter destination) where TWriter : IBufferWriter<byte> 90public void Unprotect<TWriter>(ReadOnlySpan<byte> protectedData, ref TWriter destination) where TWriter : IBufferWriter<byte>
Managed\AesGcmAuthenticatedEncryptor.cs (2)
69where TWriter : IBufferWriter<byte>, allows ref struct 217where TWriter : IBufferWriter<byte>, allows ref struct
Managed\ManagedAuthenticatedEncryptor.cs (2)
77where TWriter : IBufferWriter<byte>, allows ref struct 170where TWriter : IBufferWriter<byte>, allows ref struct
Microsoft.AspNetCore.DataProtection.Abstractions (2)
ISpanDataProtector.cs (2)
34where TWriter : IBufferWriter<byte>, allows ref struct; 49where TWriter : IBufferWriter<byte>, allows ref struct;
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)
407private static void WriteNegotiatePayload(IBufferWriter<byte> writer, string? connectionId, string? connectionToken, HttpContext context, HttpConnectionDispatcherOptions options,
src\aspnetcore\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\aspnetcore\src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
22public ReusableUtf8JsonWriter(IBufferWriter<byte> stream) 33public static ReusableUtf8JsonWriter Get(IBufferWriter<byte> stream)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (3)
23private IBufferWriter<byte>? _bufferWriter; 44public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter) 80public void SetWriter(IBufferWriter<byte> bufferWriter)
Microsoft.AspNetCore.Http.Results (1)
ServerSentEventsResult.cs (1)
66private static void FormatSseItem(SseItem<T> item, IBufferWriter<byte> writer, JsonOptions jsonOptions)
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.Razor.Utilities.Shared (1)
PooledArrayBufferWriter`1.cs (1)
15/// <see cref="IBufferWriter{T}"/> that uses <see cref="ArrayPool{T}"/>.
Microsoft.AspNetCore.Server.Kestrel.Core (7)
src\aspnetcore\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.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\aspnetcore\src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
123public void CopyTo(IBufferWriter<byte> destination)
src\aspnetcore\src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
22public ReusableUtf8JsonWriter(IBufferWriter<byte> stream) 33public static ReusableUtf8JsonWriter Get(IBufferWriter<byte> stream)
src\aspnetcore\src\SignalR\common\Shared\TextMessageFormatter.cs (1)
14public static void WriteRecordSeparator(IBufferWriter<byte> output)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (3)
23private IBufferWriter<byte>? _bufferWriter; 44public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter) 80public void SetWriter(IBufferWriter<byte> bufferWriter)
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\aspnetcore\src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (2)
22public ReusableUtf8JsonWriter(IBufferWriter<byte> stream) 33public static ReusableUtf8JsonWriter Get(IBufferWriter<byte> stream)
src\aspnetcore\src\SignalR\common\Shared\TextMessageFormatter.cs (1)
14public static void WriteRecordSeparator(IBufferWriter<byte> output)
src\aspnetcore\src\SignalR\common\Shared\Utf8BufferTextWriter.cs (3)
23private IBufferWriter<byte>? _bufferWriter; 44public static Utf8BufferTextWriter Get(IBufferWriter<byte> bufferWriter) 80public void SetWriter(IBufferWriter<byte> bufferWriter)
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 (4)
Internal\DefaultJsonSerializerFactory.cs (1)
155void IHybridCacheSerializer<T>.Serialize(T value, IBufferWriter<byte> target)
Internal\InbuiltTypeSerializer.cs (3)
22void IHybridCacheSerializer<string>.Serialize(string value, IBufferWriter<byte> target) 28void IHybridCacheSerializer<byte[]>.Serialize(byte[] value, IBufferWriter<byte> target) 51internal static void SerializeString(string value, IBufferWriter<byte> target)
Microsoft.Extensions.Caching.Hybrid.Tests (8)
BufferReleaseTests.cs (3)
98bool IBufferDistributedCache.TryGet(string key, IBufferWriter<byte> destination) 101async ValueTask<bool> IBufferDistributedCache.TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token) 104private static bool Write(IBufferWriter<byte> destination, byte[]? buffer)
L2Tests.cs (2)
179bool IBufferDistributedCache.TryGet(string key, IBufferWriter<byte> destination) 193async ValueTask<bool> IBufferDistributedCache.TryGetAsync(string key, IBufferWriter<byte> destination, CancellationToken token)
ServiceConstructionTests.cs (1)
672void IHybridCacheSerializer<Customer>.Serialize(Customer value, IBufferWriter<byte> target) => throw new NotSupportedException();
SizeTests.cs (2)
300public void Serialize(MutablePoco value, IBufferWriter<byte> target) 343public void Serialize(ImmutablePoco value, IBufferWriter<byte> target)
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 (6)
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}"/>.
ServerSentEvents\Helpers.cs (3)
30public static void WriteUtf8Number(this IBufferWriter<byte> writer, long value) 45public static void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<byte> value) 58public static unsafe void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<char> value)
ServerSentEvents\SseFormatter.cs (2)
54public static Task WriteAsync<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken = default) 74private static async Task WriteAsyncCore<T>(IAsyncEnumerable<SseItem<T>> source, Stream destination, Action<SseItem<T>, IBufferWriter<byte>> itemFormatter, CancellationToken cancellationToken)
System.Memory (12)
src\runtime\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)
805public override void GetMIC(ReadOnlySpan<byte> message, IBufferWriter<byte> signature) 816public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool _/*requestEncryption*/, out bool isEncrypted) 834public 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)
327public override NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted) 358public override NegotiateAuthenticationStatusCode Unwrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, out bool wasEncrypted) 417public 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)
13public static void WriteUtf8Number(this IBufferWriter<byte> writer, long value) 28public static void WriteUtf8String(this IBufferWriter<byte> writer, ReadOnlySpan<byte> value) 41public static 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 (20)
System\Text\Json\Writer\Utf8JsonWriter.cs (19)
38private IBufferWriter<byte>? _output; 210/// <param name="bufferWriter">An instance of <see cref="IBufferWriter{Byte}" /> used as a destination for writing JSON text into.</param> 215/// Thrown when the instance of <see cref="IBufferWriter{Byte}" /> that is passed in is null. 217public Utf8JsonWriter(IBufferWriter<byte> bufferWriter, JsonWriterOptions options = default) 268/// and the original output as the destination (either <see cref="IBufferWriter{Byte}" /> or <see cref="Stream" />). 348/// Resets the <see cref="Utf8JsonWriter"/> internal state so that it can be re-used with the new instance of <see cref="IBufferWriter{Byte}" />. 350/// <param name="bufferWriter">An instance of <see cref="IBufferWriter{Byte}" /> used as a destination for writing JSON text into.</param> 353/// but now write to the passed in <see cref="IBufferWriter{Byte}" /> as the new destination. 356/// Thrown when the instance of <see cref="IBufferWriter{Byte}" /> that is passed in is null. 361public void Reset(IBufferWriter<byte> bufferWriter) 373/// Resets the <see cref="Utf8JsonWriter"/> internal state so that it can be re-used with the new instance of <see cref="IBufferWriter{Byte}" /> 376/// <param name="bufferWriter">An instance of <see cref="IBufferWriter{Byte}" /> used as a destination for writing JSON text into.</param> 379/// Thrown when the instance of <see cref="IBufferWriter{Byte}" /> that is passed in is null. 384public void Reset(IBufferWriter<byte> bufferWriter, JsonWriterOptions options) 399internal void ConfigureForCacheReuse(IBufferWriter<byte> bufferWriter, JsonWriterOptions options) 442/// In the case of IBufferWriter, this advances the underlying <see cref="IBufferWriter{Byte}" /> based on what has been written so far. 490/// In the case of IBufferWriter, this advances the underlying <see cref="IBufferWriter{Byte}" /> based on what has been written so far. 521/// In the case of IBufferWriter, this advances the underlying <see cref="IBufferWriter{Byte}" /> based on what has been written so far. 551/// 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)