Reset resets the buffer so it has no content. b.Reset() is the same as b.Truncate(0).
()
| 119 | // Reset resets the buffer so it has no content. |
| 120 | // b.Reset() is the same as b.Truncate(0). |
| 121 | func (b *Buffer) Reset() { b.Truncate(0) } |
| 122 | |
| 123 | // grow grows the buffer to guarantee space for n more bytes. |
| 124 | // It returns the index where bytes should be written. |