mirror of
https://github.com/kopia/kopia.git
synced 2026-05-16 18:54:38 -04:00
* fixed godot linter errors * reformatted source with gofumpt * disabled some linters * fixed nolintlint warnings * fixed gci warnings * lint: fixed 'nestif' warnings * lint: fixed 'exhaustive' warnings * lint: fixed 'gocritic' warnings * lint: fixed 'noctx' warnings * lint: fixed 'wsl' warnings * lint: fixed 'goerr113' warnings * lint: fixed 'gosec' warnings * lint: upgraded linter to 1.30.0 * lint: more 'exhaustive' warnings Co-authored-by: Nick <nick@kasten.io>
26 lines
780 B
Go
26 lines
780 B
Go
package compression
|
|
|
|
// HeaderID is a unique identifier of the compressor stored in the compressed block header.
|
|
type HeaderID uint32
|
|
|
|
// defined header IDs.
|
|
const (
|
|
headerGzipDefault HeaderID = 0x1000
|
|
headerGzipBestSpeed HeaderID = 0x1001
|
|
headerGzipBestCompression HeaderID = 0x1002
|
|
|
|
headerZstdDefault HeaderID = 0x1100
|
|
headerZstdFastest HeaderID = 0x1101
|
|
headerZstdBetterCompression HeaderID = 0x1102
|
|
headerZstdBestCompression HeaderID = 0x1103
|
|
|
|
headerS2Default HeaderID = 0x1200
|
|
headerS2Better HeaderID = 0x1201
|
|
headerS2Parallel4 HeaderID = 0x1202
|
|
headerS2Parallel8 HeaderID = 0x1203
|
|
|
|
headerPgzipDefault HeaderID = 0x1300
|
|
headerPgzipBestSpeed HeaderID = 0x1301
|
|
headerPgzipBestCompression HeaderID = 0x1302
|
|
)
|