/// <summary> /// 检查下载文件的完整性,完整则返回true /// </summary> /// <returns></returns> public override bool CheckIntegrity() { if (wwwObj != null) { string tStr = MD5Bulider.MDBtyes(wwwObj.bytes); if (tStr == file.MD5str) { return(true); } } return(false); }
/// <summary> /// 检查下载文件的完整性,完整则返回true /// </summary> /// <returns></returns> public virtual bool CheckIntegrity() { if (File.Exists(localDirPath + file.relativePath)) { string tStr = MD5Bulider.MDFile(localDirPath + file.relativePath); if (tStr == file.MD5str) { return(true); } } return(false); }
public static string Test(string message) { return("rnMD5 (" + message + ") = " + MD5Bulider.MDString(message)); }