diff options
Diffstat (limited to 'Database/database.h')
-rw-r--r-- | Database/database.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Database/database.h b/Database/database.h index be46598..222573d 100644 --- a/Database/database.h +++ b/Database/database.h @@ -22,6 +22,12 @@ class Database : public Base { return 0; } Uint32 GetNextSegId() { return currentId++; } + Segment * CreateSegment(Cpu * cpu, Uint64 cpu_base, absolute_ptr origin, Uint32 size, Uint32 extra_size = 0, const Byte * data = 0) { + DatabaseCell * r = new DatabaseCell(this, cpu, cpu_base, origin, size, extra_size, data); + return r->getSegment(); + } + void Serialize(Handle * out); + void Deserialize(Handle *in); private: DatabaseCell * start, * end; Uint32 currentId; |