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