/// <summary> /// Parse the RopFastTransferSourceCopyMessagesRequest structure. /// </summary> /// <param name="s">An stream containing RopFastTransferSourceCopyMessagesRequest structure.</param> public override void Parse(Stream s) { base.Parse(s); this.RopId = (RopIdType)ReadByte(); this.LogonId = ReadByte(); this.InputHandleIndex = ReadByte(); this.OutputHandleIndex = ReadByte(); this.MessageIdCount = ReadUshort(); List<MessageID> MessageIdList = new List<MessageID>(); for (int i = 0; i < this.MessageIdCount; i++) { MessageID MessageId = new MessageID(); MessageId.Parse(s); MessageIdList.Add(MessageId); } this.MessageIds = MessageIdList.ToArray(); this.CopyFlags = (CopyFlags_CopyMessages)ReadByte(); this.SendOptions = (SendOptions)ReadByte(); }
/// <summary> /// Parse the RopSetReadFlagsRequest structure. /// </summary> /// <param name="s">An stream containing RopSetReadFlagsRequest structure</param> public override void Parse(Stream s) { base.Parse(s); this.RopId = (RopIdType)ReadByte(); this.LogonId = ReadByte(); this.InputHandleIndex = ReadByte(); this.WantAsynchronous = ReadBoolean(); this.ReadFlags = (ReadFlags)ReadByte(); this.MessageIdCount = ReadUshort(); List<MessageID> messageIDs = new List<MessageID>(); for (int i = 0; i < this.MessageIdCount; i++) { MessageID messageID = new MessageID(); messageID.Parse(s); messageIDs.Add(messageID); } this.MessageIds = messageIDs.ToArray(); }