コード例 #1
0
        public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool)
        {
            StoreObjectIdData storeObjectIdDataInstance = componentDataPool.GetStoreObjectIdDataInstance();

            storeObjectIdDataInstance.DeserializeData(reader, componentDataPool);
            this.nativeId = storeObjectIdDataInstance.Data;
        }
コード例 #2
0
        public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool)
        {
            StoreObjectIdData storeObjectIdDataInstance = componentDataPool.GetStoreObjectIdDataInstance();

            storeObjectIdDataInstance.DeserializeData(reader, componentDataPool);
            this.internalItemId = storeObjectIdDataInstance.Data;
            storeObjectIdDataInstance.DeserializeData(reader, componentDataPool);
            this.parentId   = storeObjectIdDataInstance.Data;
            this.changeType = (ChangeType)reader.ReadInt32();
            ByteArrayData byteArrayInstance = componentDataPool.GetByteArrayInstance();

            byteArrayInstance.DeserializeData(reader, componentDataPool);
            this.changeKey          = byteArrayInstance.Data;
            this.changeTrackingHash = reader.ReadInt32();
            if (componentDataPool.InternalVersion > 1)
            {
                Int32Data int32DataInstance = componentDataPool.GetInt32DataInstance();
                int32DataInstance.DeserializeData(reader, componentDataPool);
                this.Permissions = (SyncPermissions)int32DataInstance.Data;
                StringData stringDataInstance = componentDataPool.GetStringDataInstance();
                stringDataInstance.DeserializeData(reader, componentDataPool);
                this.Owner = stringDataInstance.Data;
                BooleanData booleanDataInstance = componentDataPool.GetBooleanDataInstance();
                booleanDataInstance.DeserializeData(reader, componentDataPool);
                this.Hidden = booleanDataInstance.Data;
            }
        }
コード例 #3
0
        public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool)
        {
            StoreObjectIdData storeObjectIdDataInstance = componentDataPool.GetStoreObjectIdDataInstance();

            storeObjectIdDataInstance.DeserializeData(reader, componentDataPool);
            this.parentId = storeObjectIdDataInstance.Data;
            ByteArrayData byteArrayInstance = componentDataPool.GetByteArrayInstance();

            byteArrayInstance.DeserializeData(reader, componentDataPool);
            this.changeKey          = byteArrayInstance.Data;
            this.changeTrackingHash = reader.ReadInt32();
        }