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(string filePath) // Same as above but filePath input. { return(IsShipLog(HMail.Read(filePath))); }
static public bool IsCityReport(string filePath) // Same as above but filePath input. { return(IsCityReport(HMail.Read(filePath))); }
static public bool IsUni4(string filePath) { return(IsUni4(HMail.Read(filePath))); }
static public bool IsOfficerTenFour(string filePath) // Same as above but filePath input. { return(IsOfficerTenFour(HMail.Read(filePath))); }
static public bool IsEventNotice(string filePath) // Same as above but filePath input. { return(IsEventNotice(HMail.Read(filePath))); }