コード例 #1
0
 internal RarArchiveEntry(RarArchive archive, IEnumerable <RarFilePart> parts)
 {
     this.parts = parts.ToList();
     Archive    = archive;
 }
コード例 #2
0
 internal static IEnumerable<RarArchiveEntry> GetEntries(RarArchive archive, IEnumerable<RarArchiveVolume> rarParts)
 {
     foreach (IEnumerable<RarFilePart> groupedParts in GetMatchedFileParts(rarParts))
     {
         yield return new RarArchiveEntry(archive, groupedParts);
     }
 }
コード例 #3
0
 internal RarArchiveEntry(RarArchive archive, IEnumerable<RarFilePart> parts)
 {
     this.parts = parts.ToList();
     Archive = archive;
 }
コード例 #4
0
 /// <summary>
 /// RarArchive is the first volume of a multi-part archive.  If MultipartVolume is true and IsFirstVolume is false then the first volume file must be missing.
 /// </summary>
 public static bool IsFirstVolume(this RarArchive archive)
 {
     return(archive.Volumes.First().IsFirstVolume);
 }