public AdlerBlockTransformer(AdlerConfig config) { _hashSizeInBits = config.HashSizeInBits; _n_max = config.NMax; _max_part = config.MaxPart; _worker = _hashSizeInBits switch { 32 => new Adler32Worker(config.Mod32, _n_max, _hashSizeInBits), 64 => new Adler64Worker(config.Mod64, _n_max, _max_part, _hashSizeInBits), _ => null }; }
internal AdlerFunction(AdlerTypes type) { HashType = type; _adlerConfig = AdlerTable.Map(type); }