Language

PipeWriter.Advance(Int32) Method

Definition

Notifies the PipeWriter that bytes bytes were written to the output Span or Memory. You must call GetSpan(Int32) or GetMemory(Int32) again and use the returned buffer to continue writing more data after calling Advance(Int32); 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 or Memory.

Implements

Applies to