reset method

BinaryWriter reset()

After calling this method, writer will be reset and write from the beginning.

@return This writer

ignore: avoid_returning_this

Implementation

BinaryWriter reset() {
  _bytes.clear();
  _position = 0;
  return this;
}