ArrayBufferWriter<T>.Advance(Int32) Método

Definição

Notifica o IBufferWriter<T> que os itens count foram gravados no Span<T>/Memory<T> de saídaNotifies 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)

Parâmetros

count
Int32

O número de itens gravados.The number of items written.

Implementações

Exceções

count é negativo.count is negative.

A chamada de método tenta ignorar o fim do buffer subjacente.The method call attempts to advance past the end of the underlying buffer.

Comentários

Você deve solicitar um novo buffer depois Advance de chamar para continuar gravando mais dados e não pode gravar em um buffer adquirido anteriormente.You must request a new buffer after calling Advance to continue writing more data and cannot write to a previously acquired buffer.

Aplica-se a