Beispiel #1
0
 public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool)
 {
     componentDataPool.GetStoreObjectIdDataInstance().Bind(this.internalItemId).SerializeData(writer, componentDataPool);
     componentDataPool.GetStoreObjectIdDataInstance().Bind(this.parentId).SerializeData(writer, componentDataPool);
     writer.Write((int)this.changeType);
     componentDataPool.GetByteArrayInstance().Bind(this.changeKey).SerializeData(writer, componentDataPool);
     writer.Write(this.changeTrackingHash);
     componentDataPool.GetInt32DataInstance().Bind((int)this.Permissions).SerializeData(writer, componentDataPool);
     componentDataPool.GetStringDataInstance().Bind(this.Owner).SerializeData(writer, componentDataPool);
     componentDataPool.GetBooleanDataInstance().Bind(this.Hidden).SerializeData(writer, componentDataPool);
 }
Beispiel #2
0
        public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool)
        {
            StoreObjectIdData storeObjectIdDataInstance = componentDataPool.GetStoreObjectIdDataInstance();

            storeObjectIdDataInstance.DeserializeData(reader, componentDataPool);
            this.nativeId = storeObjectIdDataInstance.Data;
        }
Beispiel #3
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;
            }
        }
        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();
        }
Beispiel #5
0
 public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool)
 {
     componentDataPool.GetStoreObjectIdDataInstance().Bind(this.nativeId).SerializeData(writer, componentDataPool);
 }
 public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool)
 {
     componentDataPool.GetStoreObjectIdDataInstance().Bind(this.parentId).SerializeData(writer, componentDataPool);
     componentDataPool.GetByteArrayInstance().Bind(this.changeKey).SerializeData(writer, componentDataPool);
     writer.Write(this.changeTrackingHash);
 }