This commit is contained in:
Shen Junzheng
2025-03-21 21:45:08 +08:00
parent 78cce92ce3
commit 80c7e67106
86 changed files with 7061 additions and 2316 deletions

11
pkg/util/zstd/zstd.go Normal file
View File

@@ -0,0 +1,11 @@
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)
}