Exemple #1
0
        public static void Cleart(CKTree tree)
        {
            var bound    = tree.Root.Bound;
            var capacity = tree.Root.Capacity;

            CKNode.NodeFree(tree.Root);
            tree.Root = CKNode.New(bound, capacity);
        }
Exemple #2
0
 public static void Free(CKTree tree)
 {
     if (tree.Root != null)
     {
         CKNode.NodeFree(tree.Root);
         tree = null;
     }
 }