Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.RdpbcgrDecoder.ParseLicensePreamble C# (CSharp) Method

ParseLicensePreamble() private method

Parse LICENSE_PREAMBLE (parser index is updated according to parsed length)
private ParseLicensePreamble ( byte data, int &currentIndex ) : LICENSE_PREAMBLE
data byte data to be parsed
currentIndex int current parser index
return LICENSE_PREAMBLE
        private LICENSE_PREAMBLE ParseLicensePreamble(byte[] data, ref int currentIndex)
        {
            LICENSE_PREAMBLE preamble = new LICENSE_PREAMBLE();

            // LICENSE_PREAMBLE: bMsgType
            preamble.bMsgType = (bMsgType_Values)ParseByte(data, ref currentIndex);

            // LICENSE_PREAMBLE: bVersion
            preamble.bVersion = (bVersion_Values)ParseByte(data, ref currentIndex);

            // LICENSE_PREAMBLE: wMsgSize
            preamble.wMsgSize = ParseUInt16(data, ref currentIndex, false);

            return preamble;
        }
RdpbcgrDecoder