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