Microsoft.Protocols.TestSuites.Common.OpenRecipientRow.Deserialize C# (CSharp) Method

Deserialize() public method

Deserialize the ROP response buffer.
public Deserialize ( byte ropBytes, int startIndex ) : int
ropBytes byte ROPs bytes in response.
startIndex int The start index of this ROP.
return int
        public int Deserialize(byte[] ropBytes, int startIndex)
        {
            int index = startIndex;
            this.RecipientType = ropBytes[index++];

            this.CodePageId = (ushort)BitConverter.ToInt16(ropBytes, index);
            index += sizeof(ushort);
            this.Reserved = (ushort)BitConverter.ToInt16(ropBytes, index);
            index += sizeof(ushort);
            this.RecipientRowSize = (ushort)BitConverter.ToInt16(ropBytes, index);
            index += sizeof(ushort);
            this.RecipientRow = new RecipientRow();
            index += this.RecipientRow.Deserialize(ropBytes, index);   
            return index - startIndex;
        }
    }
OpenRecipientRow