Ejemplo n.º 1
0
 public Stream OpenEntryStream()
 {
     return(new RarStream(archive.Unpack, FileHeader,
                          new MultiVolumeReadOnlyStream(Parts.Cast <RarFilePart>(), archive)));
 }
Ejemplo n.º 2
0
        public Stream OpenEntryStream()
        {
            if (IsRarV3)
            {
                return(new RarStream(archive.UnpackV1.Value, FileHeader, new MultiVolumeReadOnlyStream(Parts.Cast <RarFilePart>(), archive)));
            }

            return(new RarStream(archive.UnpackV2017.Value, FileHeader, new MultiVolumeReadOnlyStream(Parts.Cast <RarFilePart>(), archive)));
        }
 public Stream OpenEntryStream()
 {
     if (archive.IsSolid)
     {
         throw new InvalidOperationException("Use ExtractAllEntries to extract SOLID archives.");
     }
     return(new RarStream(archive.Unpack, FileHeader, new MultiVolumeReadOnlyStream(Parts.Cast <RarFilePart>(), archive)));
 }