From c7c51568d8b35e8674f25eaf1507b73fc3d306a6 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 5 Feb 2022 15:40:13 -0800 Subject: [PATCH] seekbuf lost the Clear function. --- seekbuf/seekbuf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seekbuf/seekbuf.go b/seekbuf/seekbuf.go index 8285fa4..be10e25 100644 --- a/seekbuf/seekbuf.go +++ b/seekbuf/seekbuf.go @@ -45,6 +45,7 @@ func (b *Buffer) Rewind() { // Close clears all the data out of the buffer and sets the read position to 0. func (b *Buffer) Close() error { - b.Clear() + b.data = nil + b.pos = 0 return nil }