예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 public static string Test(string message)
 {
     return("rnMD5 (" + message + ") = " + MD5Bulider.MDString(message));
 }