Microsoft.Protocols.TestSuites.SharedAdapter.CellKnowledgeRange.SerializeItemsToByteList C# (CSharp) Method

SerializeItemsToByteList() protected method

This method is used to serialize the items of the cell knowledge range to the byte list.
protected SerializeItemsToByteList ( List byteList ) : int
byteList List Specify the byte list which stores the information of cell knowledge range.
return int
        protected override int SerializeItemsToByteList(List<byte> byteList)
        {
            int itemsIndex = byteList.Count;
            byteList.AddRange(this.CellKnowledgeRangeGUID.ToByteArray());
            byteList.AddRange(this.From.SerializeToByteList());
            byteList.AddRange(this.To.SerializeToByteList());

            return byteList.Count - itemsIndex;
        }
    }