Files
chatlog/pkg/util/zstd/zstd.go
Shen Junzheng 80c7e67106 x
2025-03-24 22:42:31 +08:00

12 lines
218 B
Go

package zstd
import (
"github.com/klauspost/compress/zstd"
)
var decoder, _ = zstd.NewReader(nil, zstd.WithDecoderConcurrency(0))
func Decompress(src []byte) ([]byte, error) {
return decoder.DecodeAll(src, nil)
}