Microsoft.Protocols.TestSuites.Common.RopLongTermIdFromIdResponse.Deserialize C# (CSharp) Метод

Deserialize() публичный Метод

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.
Результат int
        public int Deserialize(byte[] ropBytes, int startIndex)
        {
            int index = startIndex;
            this.RopId = ropBytes[index++];
            this.InputHandleIndex = ropBytes[index++];
            this.ReturnValue = (uint)BitConverter.ToInt32(ropBytes, index);
            index += sizeof(uint);

            // Only success response has below fields
            if (this.ReturnValue == 0)
            {
                index += this.LongTermId.Deserialize(ropBytes, index);
            }

            return index - startIndex;
        }
    }
RopLongTermIdFromIdResponse