Exemple #1
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;
            }
        }
Exemple #2
0
        public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool)
        {
            ByteArrayData byteArrayInstance = componentDataPool.GetByteArrayInstance();

            byteArrayInstance.DeserializeData(reader, componentDataPool);
            this.icsState     = byteArrayInstance.Data;
            this.changeNumber = reader.ReadInt32();
        }
 public override void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool)
 {
     byte[] data = null;
     if (base.Data != null)
     {
         data = base.Data.GetBytes();
     }
     componentDataPool.GetByteArrayInstance().Bind(data).SerializeData(writer, componentDataPool);
 }
Exemple #4
0
 public override void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool)
 {
     writer.Write(base.Data == null);
     if (base.Data == null)
     {
         return;
     }
     componentDataPool.GetByteArrayInstance().Bind(base.Data.GetBytes()).SerializeData(writer, componentDataPool);
 }
Exemple #5
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);
 }
        public override void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool)
        {
            ByteArrayData byteArrayInstance = componentDataPool.GetByteArrayInstance();

            byteArrayInstance.DeserializeData(reader, componentDataPool);
            if (byteArrayInstance.Data == null)
            {
                base.Data = null;
                return;
            }
            base.Data = ConversationId.Create(byteArrayInstance.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();
        }
Exemple #8
0
        public override void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool)
        {
            if (reader.ReadBoolean())
            {
                base.Data = null;
                return;
            }
            ByteArrayData byteArrayInstance = componentDataPool.GetByteArrayInstance();

            byteArrayInstance.DeserializeData(reader, componentDataPool);
            if (byteArrayInstance.Data == null)
            {
                base.Data = null;
                return;
            }
            base.Data = new ADObjectId(byteArrayInstance.Data);
        }
Exemple #9
0
 public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool)
 {
     componentDataPool.GetByteArrayInstance().Bind(this.icsState).SerializeData(writer, componentDataPool);
     writer.Write(this.changeNumber);
 }
 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);
 }