X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/358553d9f9e9f4414e54d210807fb27832117884..HEAD:/src/btree.h?ds=sidebyside diff --git a/src/btree.h b/src/btree.h index 6feb5a8..9e49213 100644 --- a/src/btree.h +++ b/src/btree.h @@ -207,9 +207,11 @@ * ocupe block_size de tamaƱo. */ struct BTreeFileHeader { + char magic[7]; uint block_size; int tree_type; int key_type; + uint block_data_counter; }; /** Encabezado de un bloque */ @@ -319,12 +321,15 @@ class BTree { std::string filename; BTreeFileHeader header; + uint GetNextBlockData (); + /** Apunta al archivo de datos, asi se abre solo 1 vez * * \todo Ver si vale la pena */ FILE *fp; std::list deleted_nodes; + std::list deleted_block_data; /* DEBUG */