Microsoft.Protocols.TestSuites.Common.PropertyId.Deserialize C# (CSharp) Méthode

Deserialize() public méthode

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.
Résultat int
        public int Deserialize(byte[] ropBytes, int startIndex)
        {
            int index = startIndex;
            this.ID = (ushort)BitConverter.ToInt16(ropBytes, index);
            index += sizeof(ushort);
            return index - startIndex;
        }
    }