mirror of
https://github.com/teest114514/chatlog_alpha.git
synced 2026-04-03 18:48:13 +08:00
12 lines
218 B
Go
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)
|
|
}
|