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;
}