create a new leaf node.
| 783 | } |
| 784 | /// create a new leaf node. |
| 785 | Node *leaf() |
| 786 | { |
| 787 | if (next >= ALLOC) |
| 788 | { |
| 789 | list.push_back(new Node[ALLOC]); |
| 790 | next = 0; |
| 791 | } |
| 792 | return &list.back()[next++]; |
| 793 | } |
| 794 | Node *tree; ///< root of the tree or NULL |
| 795 | List list; ///< block allocation list |
| 796 | uint16_t next; ///< block allocation, next available slot in last block |