MCPcopy Create free account
hub / github.com/containers/image / Algorithm

Struct Algorithm

pkg/compression/internal/types.go:23–29  ·  view source on GitHub ↗

Algorithm is a compression algorithm that can be used for CompressStream.

Source from the content-addressed store, hash-verified

21
22// Algorithm is a compression algorithm that can be used for CompressStream.
23type Algorithm struct {
24 name string
25 baseVariantName string
26 prefix []byte // Initial bytes of a stream compressed using this algorithm, or empty to disable detection.
27 decompressor DecompressorFunc
28 compressor CompressorFunc
29}
30
31// NewAlgorithm creates an Algorithm instance.
32// nontrivialBaseVariantName is typically "".

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected