PipeWriter.Advance(Int32) 方法
定义
通知 PipeWriter:已向输出 Span<T> 或 Memory<T> 写入 bytes 字节。Notifies the PipeWriter that bytes bytes were written to the output Span<T> or Memory<T>. 必须在调用 Advance(Int32) 之后请求新的缓冲区,才能继续写入更多数据;无法写入到之前获取的缓冲区。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)