Przeczytaj w języku angielskim Edytuj

Udostępnij za pośrednictwem


ArrayStreamBufferWriter Struct

Definition

An implementation of IBufferWriter<T> which writes to a Stream, using an array as an intermediate buffer.

C#
public struct ArrayStreamBufferWriter : System.Buffers.IBufferWriter<byte>
Inheritance
ArrayStreamBufferWriter
Implements

Constructors

ArrayStreamBufferWriter(Stream, Int32)

Initializes a new instance of the ArrayStreamBufferWriter struct.

Fields

Methods

Advance(Int32)

Notifies the IBufferWriter<T> that count data items were written to the output Span<T> or Memory<T>.

GetMemory(Int32)

Returns a Memory<T> to write to that is at least the requested size (specified by sizeHint).

GetSpan(Int32)

Returns a Span<T> to write to that is at least the requested size (specified by sizeHint).

Applies to

Produkt Wersje
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0