/// <summary>Initializes a new instance of the <see cref="Crc"/> class with the specified configuration preset.</summary> /// <param name="preset">The config preset.</param> /// <returns>A newly created <see cref="Crc"/> instance.</returns> public static Crc <byte> Create(CrcOptions.Crc preset) =>
/// <summary>Loads a predefined CRC-8 configuration structure.</summary> /// <param name="preset">The preset to be loaded.</param> /// <returns>A predefined CRC-8 configuration structure.</returns> /// <exception cref="ArgumentOutOfRangeException">preset is invalid.</exception> public static ICrcConfig <byte> GetConfig(CrcOptions.Crc preset) => preset switch {
/// <summary>Initializes a new instance of the <see cref="Crc{TValue}"/> class. /// <para>The generic type of the specified <paramref name="preset"/> must be <see cref="byte"/>.</para> /// </summary> /// <param name="preset">The config preset.</param> /// <exception cref="InvalidOperationException">TValue is invalid, i.e. not supported.</exception> public Crc(CrcOptions.Crc preset) : base(8) =>