Skip to content

Conversation

@adamhathcock
Copy link
Owner

@adamhathcock adamhathcock commented Oct 15, 2025

Found while doing #958

# Conflicts:
#	src/SharpCompress/Compressors/Xz/XZIndex.cs
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes wrapper usage by replacing SharpCompressStream.Create(stream, leaveOpen: true) with direct stream usage in BinaryReader constructors across XZ compression components.

  • Simplified BinaryReader instantiation by removing SharpCompressStream wrapper
  • Updated three XZ component classes to use direct stream access
  • Maintained the same leaveOpen behavior using BinaryReader's leaveOpen parameter

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/SharpCompress/Compressors/Xz/XZIndex.cs Removed SharpCompressStream wrapper in FromStream method
src/SharpCompress/Compressors/Xz/XZHeader.cs Removed SharpCompressStream wrapper in FromStream method
src/SharpCompress/Compressors/Xz/XZFooter.cs Removed SharpCompressStream wrapper in FromStream method

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@adamhathcock adamhathcock merged commit 4cca232 into master Oct 22, 2025
2 checks passed
@adamhathcock adamhathcock deleted the adam/xz-wrapped-often branch October 22, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants