Microsoft.Protocols.TestSuites.SharedAdapter.ExGUIDArray.DoDeserializeFromByteArray C# (CSharp) Method

DoDeserializeFromByteArray() protected method

This method is used to deserialize the ExGUIDArray basic object from the specified byte array and start index.
protected DoDeserializeFromByteArray ( byte byteArray, int startIndex ) : int
byteArray byte Specify the byte array.
startIndex int Specify the start index from the byte array.
return int
        protected override int DoDeserializeFromByteArray(byte[] byteArray, int startIndex) // return the length consumed
        {
            int index = startIndex;
            this.Count = BasicObject.Parse<Compact64bitInt>(byteArray, ref index);

            this.Content.Clear();
            for (uint i = 0; i < this.Count.DecodedValue; i++)
            {
                ExGuid temp = BasicObject.Parse<ExGuid>(byteArray, ref index);
                this.Content.Add(temp);
            }

            return index - startIndex;
        }
    }