示例#1
0
            public BlockTransformer(JenkinsConfig config) : this()
            {
                _a = 0x9e3779b9;
                _b = 0x9e3779b9;
                _c = config.Seed;

                _bytesProcessed = 0;
            }
示例#2
0
        public JenkinsLookup2Function(JenkinsConfig config)
        {
            if (config is null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            _config = config.Clone();
        }
示例#3
0
        public JenkinsLookup3Function(JenkinsConfig config)
        {
            if (config is null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            _config = config.Clone();

            if (!_validHashSizes.Contains(_config.HashSizeInBits))
            {
                throw new ArgumentOutOfRangeException($"{nameof(config)}.{nameof(config.HashSizeInBits)}", _config.HashSizeInBits, $"{nameof(config)}.{nameof(config.HashSizeInBits)} must be contained within JenkinsLookup3.ValidHashSizes.");
            }
        }
示例#4
0
 public static IJenkins Create(JenkinsTypes type, JenkinsConfig config) => Factory.Create(type, config);
示例#5
0
 public static IJenkins Lookup3Bit64(JenkinsConfig config = null) => Factory.Lookup3Bit64(config);
示例#6
0
 public static IStreamableJenkins Lookup2(JenkinsConfig config = null) => Factory.Lookup2(config);