ByteWriter.reset

void reset()

Resets writer and frees the data if it's owned by writer.