Make SharpCompressStream public

This commit is contained in:
Adam Hathcock
2026-02-25 09:10:21 +00:00
parent 268ee191e8
commit a53a88b9dc
5 changed files with 8 additions and 11 deletions

View File

@@ -25,5 +25,8 @@
"csharpier.enableDebugLogs": false,
"omnisharp.enableRoslynAnalyzers": true,
"omnisharp.enableEditorConfigSupport": true,
"dotnet-test-explorer.testProjectPath": "tests/**/*.csproj"
"dotnet-test-explorer.testProjectPath": "tests/**/*.csproj",
"chat.tools.terminal.autoApprove": {
"dotnet csharpier": true
}
}

View File

@@ -16,12 +16,6 @@ internal sealed partial class SeekableSharpCompressStream : SharpCompressStream
/// </summary>
public override bool LeaveStreamOpen { get; }
/// <summary>
/// Gets or sets whether to throw an exception when Dispose is called.
/// Useful for testing to ensure streams are not disposed prematurely.
/// </summary>
public override bool ThrowOnDispose { get; set; }
public SeekableSharpCompressStream(Stream stream, bool leaveStreamOpen = false)
: base(Null, true, false, null)
{

View File

@@ -5,7 +5,7 @@ using System.Threading.Tasks;
namespace SharpCompress.IO;
internal partial class SharpCompressStream
public partial class SharpCompressStream
{
public override Task<int> ReadAsync(
byte[] buffer,

View File

@@ -4,7 +4,7 @@ using SharpCompress.Common;
namespace SharpCompress.IO;
internal partial class SharpCompressStream
public partial class SharpCompressStream
{
/// <summary>
/// Creates a SharpCompressStream that acts as a passthrough wrapper.

View File

@@ -4,7 +4,7 @@ using SharpCompress.Common;
namespace SharpCompress.IO;
internal partial class SharpCompressStream : Stream, IStreamStack
public partial class SharpCompressStream : Stream, IStreamStack
{
public virtual Stream BaseStream() => stream;
@@ -38,7 +38,7 @@ internal partial class SharpCompressStream : Stream, IStreamStack
/// Gets or sets whether to throw an exception when Dispose is called.
/// Useful for testing to ensure streams are not disposed prematurely.
/// </summary>
public virtual bool ThrowOnDispose { get; set; }
internal bool ThrowOnDispose { get; set; }
public SharpCompressStream(Stream stream)
{