diff --git a/common/alloc/buffer.go b/common/alloc/buffer.go index ee37fa02..396d4b38 100644 --- a/common/alloc/buffer.go +++ b/common/alloc/buffer.go @@ -52,6 +52,7 @@ func (b *Buffer) Clear() *Buffer { return b } +// Reset resets this Buffer into its original state. func (b *Buffer) Reset() *Buffer { b.offset = defaultOffset b.Value = b.head