System::Buffers::ArrayBufferWriter::Clear method

ArrayBufferWriter::Clear method

Clears the data written to the underlying buffer.

void System::Buffers::ArrayBufferWriter<T>::Clear()

Remarks

You must reset or clear the ArrayBufferWriter before trying to re-use it.

The ResetWrittenCount method is faster since it only sets to zero the writer’s index while the Clear method additionally zeroes the content of the underlying buffer.

See Also