コード例 #1
0
 private static FileInfo GetNextFileInfo(ArchiveHeader ah, FileInfoRarFilePart currentFilePart)
 {
     if (currentFilePart == null)
     {
         return null;
     }
     bool oldNumbering = !ah.ArchiveHeaderFlags.HasFlag(ArchiveFlags.NEWNUMBERING)
                         || currentFilePart.MarkHeader.OldFormat;
     if (oldNumbering)
     {
         return FindNextFileWithOldNumbering(currentFilePart.FileInfo);
     }
     else
     {
         return FindNextFileWithNewNumbering(currentFilePart.FileInfo);
     }
 }
コード例 #2
0
        private static FileInfo GetNextFileInfo(ArchiveHeader ah, FileInfoRarFilePart currentFilePart)
        {
            if (currentFilePart == null)
            {
                return(null);
            }
            bool oldNumbering = !ah.ArchiveHeaderFlags.HasFlag(ArchiveFlags.NEWNUMBERING) ||
                                currentFilePart.MarkHeader.OldFormat;

            if (oldNumbering)
            {
                return(FindNextFileWithOldNumbering(currentFilePart.FileInfo));
            }
            else
            {
                return(FindNextFileWithNewNumbering(currentFilePart.FileInfo));
            }
        }