## ArrayBufferWriter::Clear method


Clears the data written to the underlying buffer.

```cpp
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

* Class [ArrayBufferWriter](../)
* Namespace [System::Buffers](../../)
* Library [Aspose.TeX for C++](../../../)
