Szerkesztés

Megosztás a következőn keresztül:


ArrayBufferWriter<T>.Advance(Int32) Method

Definition

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

public:
 virtual void Advance(int count);
public void Advance (int count);
abstract member Advance : int -> unit
override this.Advance : int -> unit
Public Sub Advance (count As Integer)

Parameters

count
Int32

The number of items written.

Implements

Exceptions

count is negative.

The method call attempts to advance past the end of the underlying buffer.

Remarks

You must request a new buffer after calling Advance to continue writing more data and cannot write to a previously acquired buffer.

Applies to