IBufferWriter<T>.Advance(Int32) 方法

定义

通知 IBufferWriter<T>,已向输出 Span<T>Memory<T> 写入 count 数据项。Notifies the IBufferWriter<T> that count data items were written to the output Span<T> or Memory<T>.

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

参数

count
Int32

写入 Span<T>Memory<T> 的数据项数量。The number of data items written to the Span<T> or Memory<T>.

注解

在提前调用以继续写入更多数据时,必须请求一个新的缓冲区;不能写入先前获得的缓冲区。You must request a new buffer after calling Advance to continue writing more data; you cannot write to a previously acquired buffer.

适用于