Compare commits

..

1 Commits

Author SHA1 Message Date
c7c51568d8 seekbuf lost the Clear function. 2022-02-05 15:40:13 -08:00

View File

@@ -45,6 +45,7 @@ func (b *Buffer) Rewind() {
// Close clears all the data out of the buffer and sets the read position to 0. // Close clears all the data out of the buffer and sets the read position to 0.
func (b *Buffer) Close() error { func (b *Buffer) Close() error {
b.Clear() b.data = nil
b.pos = 0
return nil return nil
} }