Files
legacy-version/internal/pool.go
2025-08-13 21:37:46 +07:00

14 lines
222 B
Go

package internal
import (
"bytes"
"sync"
)
// BufferPool is a sync.Pool for buffers used to write compressed data to.
var BufferPool = sync.Pool{
New: func() any {
return bytes.NewBuffer(make([]byte, 0, 256))
},
}