public static PCHC_MESSAGE_TYPE GetMessageType(byte[] byteArr)
{
int index = 0;
byte[] informationData = GetBytes(byteArr, ref index, byteArr.Length - index);
int tempIndex = 0;
PCHC_MESSAGE_TYPE msgType;
tempIndex = tempIndex + 2;
msgType = (PCHC_MESSAGE_TYPE)GetUInt16(informationData, ref tempIndex, false);
return msgType;
}