BplusDotNet.xBplusTreeBytes.xBplusTreeBytes C# (CSharp) Method

xBplusTreeBytes() public method

public xBplusTreeBytes ( BplusTreeBytes tree, int prefixLength ) : System
tree BplusTreeBytes
prefixLength int
return System
        public xBplusTreeBytes(BplusTreeBytes tree, int prefixLength)
        {
            if (prefixLength<3)
            {
                throw new BplusTreeException("prefix cannot be smaller than 3 :: "+prefixLength);
            }
            if (prefixLength>tree.MaxKeyLength())
            {
                throw new BplusTreeException("prefix length cannot exceed keylength for internal tree");
            }
            this.tree = tree;
            this.prefixLength = prefixLength;
        }