Update read and write streaming api to use the newest format

This commit is contained in:
Wojtek Figat
2024-12-29 23:00:40 +01:00
parent fee0ab74ff
commit 668f3fa68d
29 changed files with 444 additions and 378 deletions

View File

@@ -625,9 +625,9 @@ void VisjectExecutor::ProcessGroupPacking(Box* box, Node* node, Value& value)
{
box = &node->Boxes[boxId];
String fieldName;
stream.ReadString(&fieldName, 11);
stream.Read(fieldName, 11);
VariantType fieldType;
stream.ReadVariantType(&fieldType);
stream.Read(fieldType);
if (box && box->HasConnection())
{
StringAsANSI<40> fieldNameAnsi(*fieldName, fieldName.Length());
@@ -666,9 +666,9 @@ void VisjectExecutor::ProcessGroupPacking(Box* box, Node* node, Value& value)
{
box = &node->Boxes[boxId];
String fieldName;
stream.ReadString(&fieldName, 11);
stream.Read(fieldName, 11);
VariantType fieldType;
stream.ReadVariantType(&fieldType);
stream.Read(fieldType);
if (box && box->HasConnection())
{
const Variant fieldValue = eatBox(node, box->FirstConnection());
@@ -720,9 +720,9 @@ void VisjectExecutor::ProcessGroupPacking(Box* box, Node* node, Value& value)
for (int32 boxId = 1; boxId < node->Boxes.Count(); boxId++)
{
String fieldName;
stream.ReadString(&fieldName, 11);
stream.Read(fieldName, 11);
VariantType fieldType;
stream.ReadVariantType(&fieldType);
stream.Read(fieldType);
if (box->ID == boxId)
{
StringAsANSI<40> fieldNameAnsi(*fieldName, fieldName.Length());
@@ -768,9 +768,9 @@ void VisjectExecutor::ProcessGroupPacking(Box* box, Node* node, Value& value)
for (int32 boxId = 1; boxId < node->Boxes.Count(); boxId++)
{
String fieldName;
stream.ReadString(&fieldName, 11);
stream.Read(fieldName, 11);
VariantType fieldType;
stream.ReadVariantType(&fieldType);
stream.Read(fieldType);
if (box->ID == boxId)
{
type.Struct.GetField(structureValue.AsBlob.Data, fieldName, value);