BaseVariantName returns the name of the “base variant” of the compression algorithm. It is either equal to Name() of the same algorithm, or equal to Name() of some other Algorithm (the “base variant”). This supports a single level of “is-a” relationship between compression algorithms, e.g. where "zs
()
| 55 | // It is either equal to Name() of the same algorithm, or equal to Name() of some other Algorithm (the “base variant”). |
| 56 | // This supports a single level of “is-a” relationship between compression algorithms, e.g. where "zstd:chunked" data is valid "zstd" data. |
| 57 | func (c Algorithm) BaseVariantName() string { |
| 58 | return c.baseVariantName |
| 59 | } |
| 60 | |
| 61 | // AlgorithmCompressor returns the compressor field of algo. |
| 62 | // This is a function instead of a public method so that it is only callable by code |
no outgoing calls
no test coverage detected