()
| 12 | ) |
| 13 | |
| 14 | func init() { |
| 15 | RegisterCompressor("zstd", newZstdCompressor(HeaderZstdDefault, zstd.SpeedDefault)) |
| 16 | RegisterCompressor("zstd-fastest", newZstdCompressor(HeaderZstdFastest, zstd.SpeedFastest)) |
| 17 | RegisterCompressor("zstd-better-compression", newZstdCompressor(HeaderZstdBetterCompression, zstd.SpeedBetterCompression)) |
| 18 | RegisterDeprecatedCompressor("zstd-best-compression", newZstdCompressor(HeaderZstdBestCompression, zstd.SpeedBestCompression)) |
| 19 | } |
| 20 | |
| 21 | func newZstdCompressor(id HeaderID, level zstd.EncoderLevel) Compressor { |
| 22 | return &zstdCompressor{id, compressionHeader(id), sync.Pool{ |
nothing calls this directly
no test coverage detected