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

Serialize() public method

Serialize the ROP request buffer.
public Serialize ( ) : byte[]
return byte[]
        public byte[] Serialize()
        {
            byte[] serializedBuffer = new byte[this.Size()];
            serializedBuffer[0] = this.StringType;
            Array.Copy(this.String, 0, serializedBuffer, 1, this.Size() - sizeof(byte));
            return serializedBuffer;
        }