private static (int, uint, ulong, uint, int) Dict(AdlerTypes type) { return(type switch { AdlerTypes.Adler32 => (32, 65521U, 0, 5552, 0), AdlerTypes.Adler64 => (64, 0, 4294967291, 363898415, 363898400), _ => throw new ArgumentOutOfRangeException(nameof(type), type, null) });
public static IAdler Create(AdlerTypes type = AdlerTypes.Adler32) => new AdlerFunction(type);
public static IAdler Create(AdlerTypes type = AdlerTypes.Adler32) => Factory.Create(type);
internal AdlerFunction(AdlerTypes type) { HashType = type; _adlerConfig = AdlerTable.Map(type); }