node += sizeof (BTreeNodeHeader);
+ node_header.item_count = 0;
+ node_header.free_space = header.block_size - sizeof (BTreeNodeHeader);
+
while (it != keys.end ()) {
BTreeData d = (*it);
memcpy (node, d.ToArray(), d.Size ());
node += d.Size ();
+ node_header.free_space -= d.Size ();
+ node_header.item_count++;
it++;
}