Refactor native Stream serialization to new API
This commit is contained in:
@@ -102,7 +102,7 @@ public:
|
||||
{
|
||||
const Parameter* param = &Parameters[i];
|
||||
stream->WriteVariantType(param->Type);
|
||||
stream->Write(¶m->Identifier);
|
||||
stream->Write(param->Identifier);
|
||||
stream->WriteString(param->Name, 97);
|
||||
stream->WriteBool(param->IsPublic);
|
||||
stream->WriteVariant(param->Value);
|
||||
@@ -221,7 +221,7 @@ public:
|
||||
|
||||
// Properties
|
||||
auto type = stream->ReadByte();
|
||||
stream->Read(¶m->Identifier);
|
||||
stream->Read(param->Identifier);
|
||||
stream->ReadString(¶m->Name, 97);
|
||||
param->IsPublic = stream->ReadBool();
|
||||
bool isStatic = stream->ReadBool();
|
||||
@@ -359,7 +359,7 @@ public:
|
||||
{
|
||||
auto param = &Parameters[i];
|
||||
stream->ReadVariantType(¶m->Type);
|
||||
stream->Read(¶m->Identifier);
|
||||
stream->Read(param->Identifier);
|
||||
stream->ReadString(¶m->Name, 97);
|
||||
param->IsPublic = stream->ReadBool();
|
||||
stream->ReadVariant(¶m->Value);
|
||||
|
||||
@@ -23,7 +23,7 @@ bool VisjectMeta::Load(ReadStream* stream, bool loadData)
|
||||
|
||||
stream->ReadInt32(&e.TypeID);
|
||||
DateTime creationTime;
|
||||
stream->Read(&creationTime);
|
||||
stream->Read(creationTime);
|
||||
|
||||
uint32 dataSize;
|
||||
stream->ReadUint32(&dataSize);
|
||||
|
||||
Reference in New Issue
Block a user