PipeWriter.Advance(Int32) Method

Definition

Notifies the PipeWriter that bytes bytes were written to the output Span<T> or Memory<T>. You must request a new buffer after calling Advance(Int32) to continue writing more data; you cannot write to a previously acquired buffer.

public:
 abstract void Advance(int bytes);
public abstract void Advance (int bytes);
abstract member Advance : int -> unit
Public MustOverride Sub Advance (bytes As Integer)

Parameters

bytes
Int32

The number of bytes written to the Span<T> or Memory<T>.

Implements

Applies to