mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-14 05:25:41 +00:00
27 lines
796 B
C#
27 lines
796 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using SharpCompress.Common;
|
|
using SharpCompress.Common.Rar;
|
|
using SharpCompress.Common.Rar.Headers;
|
|
using SharpCompress.IO;
|
|
|
|
namespace SharpCompress.Reader.Rar
|
|
{
|
|
public class RarReaderVolume : RarVolume
|
|
{
|
|
internal RarReaderVolume(Stream stream, string password, Options options)
|
|
: base(StreamingMode.Streaming, stream, password, options)
|
|
{
|
|
}
|
|
|
|
internal override RarFilePart CreateFilePart(FileHeader fileHeader, MarkHeader markHeader)
|
|
{
|
|
return new NonSeekableStreamFilePart(markHeader, fileHeader);
|
|
}
|
|
|
|
internal override IEnumerable<RarFilePart> ReadFileParts()
|
|
{
|
|
return GetVolumeFileParts();
|
|
}
|
|
}
|
|
} |