Example #1
0
            internal override bool CheckInvariant(uint h, int s)
            {
                if (PopCount(Bitmap) != 1)
                {
                    return(false);
                }

                var bitmap = Bitmap;

                var localIdx = PopCount(Bitmap - 1);

                if (!Node.CheckInvariant(h | (uint)(localIdx << s), s + TrieShift))
                {
                    return(false);
                }

                return(true);
            }