Microsoft.Protocols.TestSuites.Common.LongTermIdRange.Serialize C# (CSharp) Method

Serialize() public method

Serialize the LongTermIdRange structure.
public Serialize ( ) : byte[]
return byte[]
        public byte[] Serialize()
        {
            // 0 indicates start index
            int index = 0;
            byte[] serializedBuffer = new byte[this.Size()];

            // 24 indicates the total length of the LongTermID structure is 24 bytes as defined in [MS-OXCDATA]
            Array.Copy(this.MinLongTermId, 0, serializedBuffer, index, 24);
            index += 24;
            Array.Copy(this.MaxLongTermId, 0, serializedBuffer, index, 24);
            index += 24;

            return serializedBuffer;
        }
LongTermIdRange