Database is now working and functional.
This commit is contained in:
@@ -16,11 +16,11 @@ namespace ehs
|
||||
{
|
||||
}
|
||||
|
||||
DbVar::DbVar(const UInt_64 hashId, DbVarTmpl *master, const UInt_64 size, const Byte *const data)
|
||||
: hashId(hashId), parent(nullptr), master(master), size(size), data(new Byte[DbTypeToSize(master->GetType()) * size])
|
||||
DbVar::DbVar(const UInt_64 hashId, DbVarTmpl *master)
|
||||
: hashId(hashId), parent(nullptr), master(master), size(master->GetSize()), data(new Byte[DbTypeToSize(master->GetType()) * size])
|
||||
{
|
||||
master->slaves.Push(this);
|
||||
Util::Copy(this->data, data, DbTypeToSize(master->GetType()) * size);
|
||||
Util::Copy(data, master->GetDefault(), DbTypeToSize(master->GetType()) * size);
|
||||
}
|
||||
|
||||
DbVar::DbVar(DbVar &&var) noexcept
|
||||
|
Reference in New Issue
Block a user