Esempio n. 1
0
 internal RarArchiveEntry(RarArchive archive, IEnumerable <RarFilePart> parts)
 {
     this.parts   = parts.ToList();
     this.archive = archive;
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 5
0
 internal RarArchiveEntry(int index, RarArchive archive, IEnumerable <RarFilePart> parts)
 {
     this.Index = index;
     this.parts = parts.ToList();
     Archive    = archive;
 }