/// <summary> /// This method is used to create ObjectGroupObjectData instance from a data node object. /// </summary> /// <param name="node">Specify the node object.</param> /// <returns>Return the ObjectGroupObjectData instance.</returns> private ObjectGroupObjectData CreateObjectData(DataNodeObjectData node) { ObjectGroupObjectData objectData = new ObjectGroupObjectData(); objectData.CellIDArray = new CellIDArray(0u, null); objectData.ObjectExGUIDArray = new ExGUIDArray(new List <ExGuid>()); objectData.Data = new BinaryItem(node.ObjectData); return(objectData); }
/// <summary> /// This method is used to create ObjectGroupObjectDeclare instance from a data node object. /// </summary> /// <param name="node">Specify the node object.</param> /// <returns>Return the ObjectGroupObjectDeclare instance.</returns> private ObjectGroupObjectDeclare CreateObjectDeclare(DataNodeObjectData node) { ObjectGroupObjectDeclare objectGroupObjectDeclare = new ObjectGroupObjectDeclare(); objectGroupObjectDeclare.ObjectExtendedGUID = node.ExGuid; objectGroupObjectDeclare.ObjectPartitionID = new Compact64bitInt(1u); objectGroupObjectDeclare.CellReferencesCount = new Compact64bitInt(0u); objectGroupObjectDeclare.ObjectReferencesCount = new Compact64bitInt(1u); objectGroupObjectDeclare.ObjectDataSize = new Compact64bitInt((ulong)node.ObjectData.LongLength); return(objectGroupObjectDeclare); }
/// <summary> /// This method is used to create ObjectGroupObjectData instance from a data node object. /// </summary> /// <param name="node">Specify the node object.</param> /// <returns>Return the ObjectGroupObjectData instance.</returns> private ObjectGroupObjectData CreateObjectData(DataNodeObjectData node) { ObjectGroupObjectData objectData = new ObjectGroupObjectData(); objectData.CellIDArray = new CellIDArray(0u, null); objectData.ObjectExGUIDArray = new ExGUIDArray(new List<ExGuid>()); objectData.Data = new BinaryItem(node.ObjectData); return objectData; }
/// <summary> /// This method is used to create ObjectGroupObjectDeclare instance from a data node object. /// </summary> /// <param name="node">Specify the node object.</param> /// <returns>Return the ObjectGroupObjectDeclare instance.</returns> private ObjectGroupObjectDeclare CreateObjectDeclare(DataNodeObjectData node) { ObjectGroupObjectDeclare objectGroupObjectDeclare = new ObjectGroupObjectDeclare(); objectGroupObjectDeclare.ObjectExtendedGUID = node.ExGuid; objectGroupObjectDeclare.ObjectPartitionID = new Compact64bitInt(1u); objectGroupObjectDeclare.CellReferencesCount = new Compact64bitInt(0u); objectGroupObjectDeclare.ObjectReferencesCount = new Compact64bitInt(1u); objectGroupObjectDeclare.ObjectDataSize = new Compact64bitInt((ulong)node.ObjectData.LongLength); return objectGroupObjectDeclare; }