NonSeekableStreamFilePart.cs 548 B

123456789101112131415161718192021
  1. using System.IO;
  2. using SharpCompress.Common.Rar;
  3. using SharpCompress.Common.Rar.Headers;
  4. namespace SharpCompress.Readers.Rar
  5. {
  6. internal class NonSeekableStreamFilePart : RarFilePart
  7. {
  8. internal NonSeekableStreamFilePart(MarkHeader mh, FileHeader fh)
  9. : base(mh, fh)
  10. {
  11. }
  12. internal override Stream GetCompressedStream()
  13. {
  14. return FileHeader.PackedStream;
  15. }
  16. internal override string FilePartName => "Unknown Stream - File Entry: " + FileHeader.FileName;
  17. }
  18. }