mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-10-01 11:22:44 +00:00
23 lines
597 B
C#
23 lines
597 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Threading;
|
|
using SharpCompress.Readers;
|
|
|
|
namespace SharpCompress.Common.Lzw;
|
|
|
|
public partial class LzwEntry
|
|
{
|
|
internal static async IAsyncEnumerable<LzwEntry> GetEntriesAsync(
|
|
Stream stream,
|
|
ReaderOptions options,
|
|
[EnumeratorCancellation] CancellationToken cancellationToken = default
|
|
)
|
|
{
|
|
yield return new LzwEntry(
|
|
await LzwFilePart.CreateAsync(stream, options.ArchiveEncoding, cancellationToken),
|
|
options
|
|
);
|
|
}
|
|
}
|