mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-07-09 02:26:47 +00:00
XZBlock accesses stream.Position in its constructor and SkipPadding(), which throws NotSupportedException for non-seekable streams (e.g., HTTP). Fix: XZStream now auto-wraps non-seekable streams with SharpCompressStream.Create() to provide position tracking via ring buffer. Add tests for raw non-seekable streams (sync and async). Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com>