Exemple #1
0
        public static SparseBitset ToBitset(this IEnumerable <ulong> bitValues)
        {
            var bitset = new SparseBitset();

            foreach (var bitValue in bitValues)
            {
                bitset.Add(bitValue);
            }

            return(bitset);
        }
        public void Setup()
        {
            var bitValues = Enumerable.Range(0, 1000);

            _overallBitset = new SparseBitset();

            foreach (var bitValue in bitValues)
            {
                _overallBitset.Add((ulong)bitValue);
            }

            _overallBitset.Pack();
        }