mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-04-05 21:51:09 +00:00
Make SharpCompressStream public
This commit is contained in:
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user