コード例 #1
0
            /// <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);
            }
コード例 #2
0
            /// <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);
            }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
            /// <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;
            }