x
This commit is contained in:
11
pkg/util/zstd/zstd.go
Normal file
11
pkg/util/zstd/zstd.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user