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

ParseLicenseErrorMessage() private method

Parse LICENSE_ConstValue.ERROR_MESSAGE (parser index is updated according to parsed length)
private ParseLicenseErrorMessage ( byte data, int &currentIndex ) : LICENSE_ERROR_MESSAGE
data byte data to be parsed
currentIndex int current parser index
return LICENSE_ERROR_MESSAGE
        private LICENSE_ERROR_MESSAGE ParseLicenseErrorMessage(byte[] data, ref int currentIndex)
        {
            LICENSE_ERROR_MESSAGE message = new LICENSE_ERROR_MESSAGE();

            // LICENSE_ERROR_MESSAGE: dwErrorCode
            message.dwErrorCode = (dwErrorCode_Values)ParseUInt32(data, ref currentIndex, false);

            // LICENSE_ERROR_MESSAGE: dwStateTransition
            message.dwStateTransition = (dwStateTransition_Values)ParseUInt32(data, ref currentIndex, false);

            // LICENSE_ERROR_MESSAGE: bbErrorInfo
            message.bbErrorInfo.wBlobType = (wBlobType_Values)ParseUInt16(data, ref currentIndex, false);
            message.bbErrorInfo.wBlobLen = ParseUInt16(data, ref currentIndex, true);
            message.bbErrorInfo.blobData = GetBytes(data, ref currentIndex, (int)message.bbErrorInfo.wBlobLen);

            return message;
        }
RdpbcgrDecoder