using System.Collections.Generic; using SharpCompress.Common; using SharpCompress.Common.Rar; using SharpCompress.Common.Rar.Headers; namespace SharpCompress.Readers.Rar { public class RarReaderEntry : RarEntry { internal RarReaderEntry(bool solid, RarFilePart part) { Part = part; IsSolid = solid; } internal RarFilePart Part { get; } internal override IEnumerable Parts => Part.AsEnumerable(); internal override FileHeader FileHeader => Part.FileHeader; public override CompressionType CompressionType => CompressionType.Rar; /// /// The compressed file size /// public override long CompressedSize => Part.FileHeader.CompressedSize; /// /// The uncompressed file size /// public override long Size => Part.FileHeader.UncompressedSize; } }