public BlockTransformer(IJenkinsLookup2Config config) : this() { _a = 0x9e3779b9; _b = 0x9e3779b9; _c = config.Seed; _bytesProcessed = 0; }
/// <summary> /// Creates a new <see cref="IJenkinsLookup2"/> instance with the specified configuration. /// </summary> /// <param name="config">Configuration to use when constructing the instance.</param> /// <returns>A <see cref="IJenkinsLookup2"/> instance.</returns> public IJenkinsLookup2 Create(IJenkinsLookup2Config config) { if (config == null) { throw new ArgumentNullException(nameof(config)); } return(new JenkinsLookup2_Implementation(config)); }
public JenkinsLookup2_Implementation(IJenkinsLookup2Config config) { if (config == null) { throw new ArgumentNullException(nameof(config)); } _config = config.Clone(); }