예제 #1
0
 internal RarArchiveEntry(RarArchive archive, IEnumerable <RarFilePart> parts)
 {
     this.parts   = parts.ToList();
     this.archive = archive;
 }
예제 #2
0
 /// <summary>
 /// RarArchive is part of a multi-part archive.
 /// </summary>
 public static bool IsMultipartVolume(/*this*/ RarArchive archive)
 {
     return(archive.Volumes.First <SharpCompress.Common.Rar.RarVolume>().IsMultiVolume);
 }
예제 #3
0
 /// <summary>
 /// RarArchive is SOLID (this means the Archive saved bytes by reusing information which helps for archives containing many small files).
 /// </summary>
 public static bool IsSolidArchive(this RarArchive archive)
 {
     return(archive.IsSolid);
 }
예제 #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);
 }
예제 #5
0
 internal RarArchiveEntry(int index, RarArchive archive, IEnumerable <RarFilePart> parts)
 {
     this.Index = index;
     this.parts = parts.ToList();
     Archive    = archive;
 }