Finished implementing, now for the testing phase.

This commit is contained in:
2025-01-26 21:43:17 -08:00
parent 7bc4b9977d
commit 981b40d3b1
47 changed files with 2070 additions and 1597 deletions

View File

@@ -3,24 +3,24 @@
namespace ehs
{
NetEnc::NetEnc()
: owner(nullptr), hashId(0)
: id(0)
{
}
NetEnc::NetEnc(Str_8 id)
: owner(nullptr), hashId(id.Hash_64()), id((Str_8 &&)id)
NetEnc::NetEnc(Str_8 name, const Version &version)
: id(name.Hash_64()), name((Str_8 &&)name), version(version)
{
}
NetEnc::NetEnc(NetEnc&& enc) noexcept
: owner(enc.owner), hashId(enc.hashId), id((Str_8 &&)enc.id)
: id(enc.id), name((Str_8 &&)enc.name), version(enc.version)
{
enc.owner = nullptr;
enc.hashId = 0;
enc.id = 0;
enc.version = {};
}
NetEnc::NetEnc(const NetEnc& enc)
: owner(nullptr), hashId(enc.hashId), id(enc.id)
: id(enc.id), name(enc.name), version(enc.version)
{
}
@@ -29,12 +29,12 @@ namespace ehs
if (this == &enc)
return *this;
owner = enc.owner;
hashId = enc.hashId;
id = (Str_8 &&)enc.id;
id = enc.id;
name = (Str_8 &&)enc.name;
version = enc.version;
enc.owner = nullptr;
enc.hashId = 0;
enc.id = 0;
enc.version = {};
return *this;
}
@@ -44,28 +44,28 @@ namespace ehs
if (this == &enc)
return *this;
owner = nullptr;
hashId = enc.hashId;
id = enc.id;
name = enc.name;
version = enc.version;
return *this;
}
EHC* NetEnc::GetOwner() const
{
return owner;
}
UInt_64 NetEnc::GetHashId() const
{
return hashId;
}
Str_8 NetEnc::GetId() const
UInt_64 NetEnc::GetId() const
{
return id;
}
Str_8 NetEnc::GetName() const
{
return name;
}
Version NetEnc::GetVersion() const
{
return version;
}
void NetEnc::Encrypt(Byte *data, UInt_64 size) const
{
}