typed/buffer.go
func (w *WriteBuffer) Reset() {
	w.remaining = w.buffer
	w.err = nil
}
func (w *WriteBuffer) Reset() {
	w.remaining = w.buffer
	w.err = nil
}
// Reset resets the buffer to an empty state, ready for writing