Microsoft.Protocols.TestSuites.Common.ReadRecipientRow.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.RowId = (uint)BitConverter.ToInt32(ropBytes, index);
            index += 4;
            this.RecipientType = ropBytes[index++];
            this.CodePageId = (ushort)BitConverter.ToInt16(ropBytes, index);
            index += 2;
            this.Reserved = (ushort)BitConverter.ToInt16(ropBytes, index);
            index += 2;
            this.RecipientRowSize = (ushort)BitConverter.ToInt16(ropBytes, index);
            index += 2;
            index += this.RecipientRow.Deserialize(ropBytes, index);
            return index - startIndex;
        }
    }
ReadRecipientRow