using System.IO;
using SharpCompress.Common.Rar.Headers;

namespace SharpCompress.Common.Rar;

/// <summary>
/// This represents a single file part that exists in a rar volume.  A compressed file is one or many file parts that are spread across one or may rar parts.
/// </summary>
internal abstract class RarFilePart : FilePart
{
    internal RarFilePart(MarkHeader mh, FileHeader fh, int index)
        : base(fh.ArchiveEncoding)
    {
        MarkHeader = mh;
        FileHeader = fh;
        Index = index;
    }

    internal MarkHeader MarkHeader { get; }

    internal FileHeader FileHeader { get; }

    internal override Stream? GetRawStream() => null;
}
