public HMail(string filePath) { _filePath = filePath; _mailBytes = HMail.Read(_filePath); _from_l = HHelper.ToInt32(_mailBytes, 15); _subj_l = HHelper.ToInt32(_mailBytes, 19 + _from_l + 10); _body_l = Math.Max(0, HHelper.ToInt32(_mailBytes, 19 + _from_l + 14 + _subj_l)); if (this.MessageFlags_Syst) { _syst_l = HHelper.ToInt32(_mailBytes, 19 + _from_l + 14 + _subj_l + 4 + _body_l + 1 + 4); _systSkipOffset += 8 + _syst_l; } if (this.MessageFlags_Plan) { _plan_l = HHelper.ToInt32(_mailBytes, 19 + _from_l + 14 + _subj_l + 4 + _body_l + 1 + _systSkipOffset + 4); _planSkipOffset += 8 + _plan_l; } }
static public bool IsShipLog(byte[] mailBytes) // Same as above but mailBytes input. { return(IsShipLog(mailBytes[19 + HHelper.ToInt32(mailBytes, 15) + 9])); }
static public bool IsOfficerTenFour(byte[] mailBytes) // Same as above but mailBytes input. { return(IsOfficerTenFour(mailBytes[19 + HHelper.ToInt32(mailBytes, 15) + 9])); }