internal static IEnumerable <RarArchiveVolume> GetParts(IEnumerable <Stream> streams, RarOptions options) { foreach (Stream s in streams) { if (!s.CanRead || !s.CanSeek) { throw new ArgumentException("Stream is not readable and seekable"); } var part = new StreamRarArchiveVolume(s, options); yield return(part); } }
internal static IEnumerable<RarArchiveVolume> GetParts(IEnumerable<Stream> streams, RarOptions options) { foreach (Stream s in streams) { if (!s.CanRead || !s.CanSeek) { throw new ArgumentException("Stream is not readable and seekable"); } var part = new StreamRarArchiveVolume(s, options); yield return part; } }