Update read and write streaming api to use the newest format
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user