return keys;
}
+void BTree::WriteKeys (uchar *node, BTreeNodeHeader &node_header, std::list<Clave *> &keys)
+{
+ std::list<Clave *>::iterator it = keys.begin ();
+
+ node += sizeof (BTreeNodeHeader);
+
+ while (it != keys.end ()) {
+ Clave *c = (*it);
+ memcpy (node, c->ToArray(), c->Size ());
+ node += c->Size ();
+ it++;
+ }
+
+ /* TODO : incrementar node_header.item_count aca o fuera de este metodo? */
+}
void WriteNodoHeader (uchar *node, BTreeNodeHeader *header);
std::list<Clave *> ReadKeys (uchar *node, BTreeNodeHeader &node_header);
+ void WriteKeys (uchar *node, BTreeNodeHeader &node_header, std::list<Clave *> &keys);
std::string filename;
BTreeFileHeader header;