]> Cypherpunks repositories - gostls13.git/commit
internal/zstd: new internal package for zstd decompression
authorIan Lance Taylor <iant@golang.org>
Fri, 3 Mar 2023 19:42:07 +0000 (11:42 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 18 Apr 2023 20:34:13 +0000 (20:34 +0000)
commit73ee0fcf375c12e52997870125dbbac7aad96284
treef66a44a8c4723e52be810a7ea61c8b0839e07ccf
parentd5514013b6110850789d5397b9b972527e1641cd
internal/zstd: new internal package for zstd decompression

This package only does zstd decompression, which is starting to
be used for ELF debug sections. If we need zstd compression we
should use github.com/klauspost/compress/zstd. But for now that
is a very large package to vendor into the standard library.

For #55107

Change-Id: I60ede735357d491be653477ed419cf5f2f0d3f71
Reviewed-on: https://go-review.googlesource.com/c/go/+/473356
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
12 files changed:
src/go/build/deps_test.go
src/internal/zstd/bits.go [new file with mode: 0644]
src/internal/zstd/block.go [new file with mode: 0644]
src/internal/zstd/fse.go [new file with mode: 0644]
src/internal/zstd/fse_test.go [new file with mode: 0644]
src/internal/zstd/fuzz_test.go [new file with mode: 0644]
src/internal/zstd/huff.go [new file with mode: 0644]
src/internal/zstd/literals.go [new file with mode: 0644]
src/internal/zstd/xxhash.go [new file with mode: 0644]
src/internal/zstd/xxhash_test.go [new file with mode: 0644]
src/internal/zstd/zstd.go [new file with mode: 0644]
src/internal/zstd/zstd_test.go [new file with mode: 0644]