diff --git a/build/Program.cs b/build/Program.cs index 47a867459..1ad21f50f 100644 --- a/build/Program.cs +++ b/build/Program.cs @@ -230,7 +230,7 @@ IEnumerable GetFiles(string d) } else { - // Not tagged - create prerelease version based on next minor version + // Not tagged - create prerelease version var allTags = (await GetGitOutput("tag", "--list")) .Split('\n', StringSplitOptions.RemoveEmptyEntries) .Where(tag => Regex.IsMatch(tag.Trim(), @"^\d+\.\d+\.\d+$")) @@ -240,8 +240,22 @@ IEnumerable GetFiles(string d) var lastTag = allTags.OrderBy(tag => Version.Parse(tag)).LastOrDefault() ?? "0.0.0"; var lastVersion = Version.Parse(lastTag); - // Increment minor version for next release - var nextVersion = new Version(lastVersion.Major, lastVersion.Minor + 1, 0); + // Determine version increment based on branch + var currentBranch = await GetCurrentBranch(); + Version nextVersion; + + if (currentBranch == "release") + { + // Release branch: increment patch version + nextVersion = new Version(lastVersion.Major, lastVersion.Minor, lastVersion.Build + 1); + Console.WriteLine($"Building prerelease for release branch (patch increment)"); + } + else + { + // Master or other branches: increment minor version + nextVersion = new Version(lastVersion.Major, lastVersion.Minor + 1, 0); + Console.WriteLine($"Building prerelease for {currentBranch} branch (minor increment)"); + } // Use commit count since the last version tag if available; otherwise, fall back to total count var revListArgs = allTags.Any() ? $"--count {lastTag}..HEAD" : "--count HEAD"; @@ -253,6 +267,28 @@ IEnumerable GetFiles(string d) } } +static async Task GetCurrentBranch() +{ + // In GitHub Actions, GITHUB_REF_NAME contains the branch name + var githubRefName = Environment.GetEnvironmentVariable("GITHUB_REF_NAME"); + if (!string.IsNullOrEmpty(githubRefName)) + { + return githubRefName; + } + + // Fallback to git command for local builds + try + { + var (output, _) = await ReadAsync("git", "branch --show-current"); + return output.Trim(); + } + catch (Exception ex) + { + Console.WriteLine($"Warning: Could not determine current branch: {ex.Message}"); + return "unknown"; + } +} + static async Task GetGitOutput(string command, string args) { try diff --git a/src/SharpCompress/Archives/ArchiveFactory.cs b/src/SharpCompress/Archives/ArchiveFactory.cs index 94368ece5..1f4c8e6fc 100644 --- a/src/SharpCompress/Archives/ArchiveFactory.cs +++ b/src/SharpCompress/Archives/ArchiveFactory.cs @@ -166,22 +166,14 @@ private static T FindFactory(Stream stream) ); } - public static bool IsArchive( - string filePath, - out ArchiveType? type, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public static bool IsArchive(string filePath, out ArchiveType? type) { filePath.NotNullOrEmpty(nameof(filePath)); using Stream s = File.OpenRead(filePath); - return IsArchive(s, out type, bufferSize); + return IsArchive(s, out type); } - public static bool IsArchive( - Stream stream, - out ArchiveType? type, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public static bool IsArchive(Stream stream, out ArchiveType? type) { type = null; stream.NotNull(nameof(stream)); diff --git a/src/SharpCompress/Archives/AutoArchiveFactory.cs b/src/SharpCompress/Archives/AutoArchiveFactory.cs index 78313df54..12b70266d 100644 --- a/src/SharpCompress/Archives/AutoArchiveFactory.cs +++ b/src/SharpCompress/Archives/AutoArchiveFactory.cs @@ -14,11 +14,8 @@ class AutoArchiveFactory : IArchiveFactory public IEnumerable GetSupportedExtensions() => throw new NotSupportedException(); - public bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) => throw new NotSupportedException(); + public bool IsArchive(Stream stream, string? password = null) => + throw new NotSupportedException(); public FileInfo? GetFilePart(int index, FileInfo part1) => throw new NotSupportedException(); diff --git a/src/SharpCompress/Archives/IArchiveEntryExtensions.cs b/src/SharpCompress/Archives/IArchiveEntryExtensions.cs index af2c9be45..1460c2eca 100644 --- a/src/SharpCompress/Archives/IArchiveEntryExtensions.cs +++ b/src/SharpCompress/Archives/IArchiveEntryExtensions.cs @@ -9,8 +9,6 @@ namespace SharpCompress.Archives; public static class IArchiveEntryExtensions { - private const int BufferSize = 81920; - /// The archive entry to extract. extension(IArchiveEntry archiveEntry) { @@ -28,7 +26,7 @@ public void WriteTo(Stream streamToWriteTo, IProgress? progress using var entryStream = archiveEntry.OpenEntryStream(); var sourceStream = WrapWithProgress(entryStream, archiveEntry, progress); - sourceStream.CopyTo(streamToWriteTo, BufferSize); + sourceStream.CopyTo(streamToWriteTo, Constants.BufferSize); } /// @@ -51,7 +49,7 @@ public async Task WriteToAsync( using var entryStream = await archiveEntry.OpenEntryStreamAsync(cancellationToken); var sourceStream = WrapWithProgress(entryStream, archiveEntry, progress); await sourceStream - .CopyToAsync(streamToWriteTo, BufferSize, cancellationToken) + .CopyToAsync(streamToWriteTo, Constants.BufferSize, cancellationToken) .ConfigureAwait(false); } } diff --git a/src/SharpCompress/Archives/Tar/TarArchive.cs b/src/SharpCompress/Archives/Tar/TarArchive.cs index 2754fd9bb..24bf77b78 100644 --- a/src/SharpCompress/Archives/Tar/TarArchive.cs +++ b/src/SharpCompress/Archives/Tar/TarArchive.cs @@ -180,7 +180,7 @@ var header in TarHeaderFactory.ReadHeader( using (var entryStream = entry.OpenEntryStream()) { using var memoryStream = new MemoryStream(); - entryStream.CopyTo(memoryStream); + entryStream.CopyTo(memoryStream, Constants.BufferSize); memoryStream.Position = 0; var bytes = memoryStream.ToArray(); diff --git a/src/SharpCompress/Archives/Zip/ZipArchive.cs b/src/SharpCompress/Archives/Zip/ZipArchive.cs index 57db85c2a..8a870b99d 100644 --- a/src/SharpCompress/Archives/Zip/ZipArchive.cs +++ b/src/SharpCompress/Archives/Zip/ZipArchive.cs @@ -124,38 +124,27 @@ public static ZipArchive Open(Stream stream, ReaderOptions? readerOptions = null ); } - public static bool IsZipFile( - string filePath, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) => IsZipFile(new FileInfo(filePath), password, bufferSize); - - public static bool IsZipFile( - FileInfo fileInfo, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public static bool IsZipFile(string filePath, string? password = null) => + IsZipFile(new FileInfo(filePath), password); + + public static bool IsZipFile(FileInfo fileInfo, string? password = null) { if (!fileInfo.Exists) { return false; } using Stream stream = fileInfo.OpenRead(); - return IsZipFile(stream, password, bufferSize); + return IsZipFile(stream, password); } - public static bool IsZipFile( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public static bool IsZipFile(Stream stream, string? password = null) { var headerFactory = new StreamingZipHeaderFactory(password, new ArchiveEncoding(), null); try { if (stream is not SharpCompressStream) { - stream = new SharpCompressStream(stream, bufferSize: bufferSize); + stream = new SharpCompressStream(stream, bufferSize: Constants.BufferSize); } var header = headerFactory @@ -177,18 +166,14 @@ public static bool IsZipFile( } } - public static bool IsZipMulti( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public static bool IsZipMulti(Stream stream, string? password = null) { var headerFactory = new StreamingZipHeaderFactory(password, new ArchiveEncoding(), null); try { if (stream is not SharpCompressStream) { - stream = new SharpCompressStream(stream, bufferSize: bufferSize); + stream = new SharpCompressStream(stream, bufferSize: Constants.BufferSize); } var header = headerFactory @@ -229,7 +214,7 @@ protected override IEnumerable LoadVolumes(SourceStream stream) if (streams.Count() > 1) //test part 2 - true = multipart not split { streams[1].Position += 4; //skip the POST_DATA_DESCRIPTOR to prevent an exception - var isZip = IsZipFile(streams[1], ReaderOptions.Password, ReaderOptions.BufferSize); + var isZip = IsZipFile(streams[1], ReaderOptions.Password); streams[1].Position -= 4; if (isZip) { diff --git a/src/SharpCompress/Common/Constants.cs b/src/SharpCompress/Common/Constants.cs new file mode 100644 index 000000000..1e6d57f5a --- /dev/null +++ b/src/SharpCompress/Common/Constants.cs @@ -0,0 +1,10 @@ +namespace SharpCompress.Common; + +public static class Constants +{ + /// + /// The default buffer size for stream operations, matching .NET's Stream.CopyTo default of 81920 bytes. + /// This can be modified globally at runtime. + /// + public static int BufferSize { get; set; } = 81920; +} diff --git a/src/SharpCompress/Factories/AceFactory.cs b/src/SharpCompress/Factories/AceFactory.cs index 5b80ae24f..883c7a92a 100644 --- a/src/SharpCompress/Factories/AceFactory.cs +++ b/src/SharpCompress/Factories/AceFactory.cs @@ -22,11 +22,7 @@ public override IEnumerable GetSupportedExtensions() yield return "ace"; } - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public override bool IsArchive(Stream stream, string? password = null) { return AceHeader.IsArchive(stream); } diff --git a/src/SharpCompress/Factories/ArcFactory.cs b/src/SharpCompress/Factories/ArcFactory.cs index b5180afae..469ee1368 100644 --- a/src/SharpCompress/Factories/ArcFactory.cs +++ b/src/SharpCompress/Factories/ArcFactory.cs @@ -23,11 +23,7 @@ public override IEnumerable GetSupportedExtensions() yield return "arc"; } - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public override bool IsArchive(Stream stream, string? password = null) { //You may have to use some(paranoid) checks to ensure that you actually are //processing an ARC file, since other archivers also adopted the idea of putting diff --git a/src/SharpCompress/Factories/ArjFactory.cs b/src/SharpCompress/Factories/ArjFactory.cs index f6f7a3934..fad03b755 100644 --- a/src/SharpCompress/Factories/ArjFactory.cs +++ b/src/SharpCompress/Factories/ArjFactory.cs @@ -22,11 +22,7 @@ public override IEnumerable GetSupportedExtensions() yield return "arj"; } - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public override bool IsArchive(Stream stream, string? password = null) { return ArjHeader.IsArchive(stream); } diff --git a/src/SharpCompress/Factories/Factory.cs b/src/SharpCompress/Factories/Factory.cs index 4651ccb22..3f505d53b 100644 --- a/src/SharpCompress/Factories/Factory.cs +++ b/src/SharpCompress/Factories/Factory.cs @@ -51,11 +51,7 @@ public static void RegisterFactory(Factory factory) public abstract IEnumerable GetSupportedExtensions(); /// - public abstract bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ); + public abstract bool IsArchive(Stream stream, string? password = null); /// public virtual FileInfo? GetFilePart(int index, FileInfo part1) => null; @@ -82,7 +78,7 @@ out IReader? reader { long pos = ((IStreamStack)stream).GetPosition(); - if (IsArchive(stream, options.Password, options.BufferSize)) + if (IsArchive(stream, options.Password)) { ((IStreamStack)stream).StackSeek(pos); reader = readerFactory.OpenReader(stream, options); diff --git a/src/SharpCompress/Factories/GZipFactory.cs b/src/SharpCompress/Factories/GZipFactory.cs index 17f344cf0..89a0cdec5 100644 --- a/src/SharpCompress/Factories/GZipFactory.cs +++ b/src/SharpCompress/Factories/GZipFactory.cs @@ -40,11 +40,8 @@ public override IEnumerable GetSupportedExtensions() } /// - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) => GZipArchive.IsGZipFile(stream); + public override bool IsArchive(Stream stream, string? password = null) => + GZipArchive.IsGZipFile(stream); #endregion diff --git a/src/SharpCompress/Factories/IFactory.cs b/src/SharpCompress/Factories/IFactory.cs index 63d5eeec6..e95da6127 100644 --- a/src/SharpCompress/Factories/IFactory.cs +++ b/src/SharpCompress/Factories/IFactory.cs @@ -36,11 +36,7 @@ public interface IFactory /// /// A stream, pointing to the beginning of the archive. /// optional password - bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ); + bool IsArchive(Stream stream, string? password = null); /// /// From a passed in archive (zip, rar, 7z, 001), return all parts. diff --git a/src/SharpCompress/Factories/RarFactory.cs b/src/SharpCompress/Factories/RarFactory.cs index 610999057..cfdb7ff24 100644 --- a/src/SharpCompress/Factories/RarFactory.cs +++ b/src/SharpCompress/Factories/RarFactory.cs @@ -29,11 +29,8 @@ public override IEnumerable GetSupportedExtensions() } /// - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) => RarArchive.IsRarFile(stream); + public override bool IsArchive(Stream stream, string? password = null) => + RarArchive.IsRarFile(stream); /// public override FileInfo? GetFilePart(int index, FileInfo part1) => diff --git a/src/SharpCompress/Factories/SevenZipFactory.cs b/src/SharpCompress/Factories/SevenZipFactory.cs index 18dedbfdd..84b1d8e99 100644 --- a/src/SharpCompress/Factories/SevenZipFactory.cs +++ b/src/SharpCompress/Factories/SevenZipFactory.cs @@ -28,11 +28,8 @@ public override IEnumerable GetSupportedExtensions() } /// - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) => SevenZipArchive.IsSevenZipFile(stream); + public override bool IsArchive(Stream stream, string? password = null) => + SevenZipArchive.IsSevenZipFile(stream); #endregion diff --git a/src/SharpCompress/Factories/TarFactory.cs b/src/SharpCompress/Factories/TarFactory.cs index d32020fd7..225270d83 100644 --- a/src/SharpCompress/Factories/TarFactory.cs +++ b/src/SharpCompress/Factories/TarFactory.cs @@ -53,11 +53,8 @@ public override IEnumerable GetSupportedExtensions() } /// - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) => TarArchive.IsTarFile(stream); + public override bool IsArchive(Stream stream, string? password = null) => + TarArchive.IsTarFile(stream); #endregion diff --git a/src/SharpCompress/Factories/ZStandardFactory.cs b/src/SharpCompress/Factories/ZStandardFactory.cs index a5c6d84f2..7a26b27a4 100644 --- a/src/SharpCompress/Factories/ZStandardFactory.cs +++ b/src/SharpCompress/Factories/ZStandardFactory.cs @@ -20,9 +20,6 @@ public override IEnumerable GetSupportedExtensions() yield return "zstd"; } - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = 65536 - ) => ZStandardStream.IsZStandard(stream); + public override bool IsArchive(Stream stream, string? password = null) => + ZStandardStream.IsZStandard(stream); } diff --git a/src/SharpCompress/Factories/ZipFactory.cs b/src/SharpCompress/Factories/ZipFactory.cs index 5c2fcad8d..1e9e06ea3 100644 --- a/src/SharpCompress/Factories/ZipFactory.cs +++ b/src/SharpCompress/Factories/ZipFactory.cs @@ -39,11 +39,7 @@ public override IEnumerable GetSupportedExtensions() } /// - public override bool IsArchive( - Stream stream, - string? password = null, - int bufferSize = ReaderOptions.DefaultBufferSize - ) + public override bool IsArchive(Stream stream, string? password = null) { var startPosition = stream.CanSeek ? stream.Position : -1; @@ -51,10 +47,10 @@ public override bool IsArchive( if (stream is not SharpCompressStream) // wrap to provide buffer bef { - stream = new SharpCompressStream(stream, bufferSize: bufferSize); + stream = new SharpCompressStream(stream, bufferSize: Constants.BufferSize); } - if (ZipArchive.IsZipFile(stream, password, bufferSize)) + if (ZipArchive.IsZipFile(stream, password)) { return true; } @@ -69,7 +65,7 @@ public override bool IsArchive( stream.Position = startPosition; //test the zip (last) file of a multipart zip - if (ZipArchive.IsZipMulti(stream, password, bufferSize)) + if (ZipArchive.IsZipMulti(stream, password)) { return true; } diff --git a/src/SharpCompress/Readers/AbstractReader.cs b/src/SharpCompress/Readers/AbstractReader.cs index cd37bb5ff..c822393e7 100644 --- a/src/SharpCompress/Readers/AbstractReader.cs +++ b/src/SharpCompress/Readers/AbstractReader.cs @@ -262,7 +262,7 @@ internal void Write(Stream writeStream) { using Stream s = OpenEntryStream(); var sourceStream = WrapWithProgress(s, Entry); - sourceStream.CopyTo(writeStream, 81920); + sourceStream.CopyTo(writeStream, Constants.BufferSize); } internal async Task WriteAsync(Stream writeStream, CancellationToken cancellationToken) @@ -270,11 +270,15 @@ internal async Task WriteAsync(Stream writeStream, CancellationToken cancellatio #if NETFRAMEWORK || NETSTANDARD2_0 using Stream s = OpenEntryStream(); var sourceStream = WrapWithProgress(s, Entry); - await sourceStream.CopyToAsync(writeStream, 81920, cancellationToken).ConfigureAwait(false); + await sourceStream + .CopyToAsync(writeStream, Constants.BufferSize, cancellationToken) + .ConfigureAwait(false); #else await using Stream s = OpenEntryStream(); var sourceStream = WrapWithProgress(s, Entry); - await sourceStream.CopyToAsync(writeStream, 81920, cancellationToken).ConfigureAwait(false); + await sourceStream + .CopyToAsync(writeStream, Constants.BufferSize, cancellationToken) + .ConfigureAwait(false); #endif } diff --git a/src/SharpCompress/Readers/ReaderOptions.cs b/src/SharpCompress/Readers/ReaderOptions.cs index cedf8bedb..b016a3b6a 100644 --- a/src/SharpCompress/Readers/ReaderOptions.cs +++ b/src/SharpCompress/Readers/ReaderOptions.cs @@ -5,6 +5,14 @@ namespace SharpCompress.Readers; public class ReaderOptions : OptionsBase { + /// + /// The default buffer size for stream operations. + /// This value (65536 bytes) is preserved for backward compatibility. + /// New code should use Constants.BufferSize instead (81920 bytes), which matches .NET's Stream.CopyTo default. + /// + [Obsolete( + "Use Constants.BufferSize instead. This constant will be removed in a future version." + )] public const int DefaultBufferSize = 0x10000; /// @@ -16,7 +24,7 @@ public class ReaderOptions : OptionsBase public bool DisableCheckIncomplete { get; set; } - public int BufferSize { get; set; } = DefaultBufferSize; + public int BufferSize { get; set; } = Constants.BufferSize; /// /// Provide a hint for the extension of the archive being read, can speed up finding the correct decoder. Should be without the leading period in the form like: tar.gz or zip diff --git a/src/SharpCompress/Utility.cs b/src/SharpCompress/Utility.cs index 8f2d6788a..bf9d91e1b 100644 --- a/src/SharpCompress/Utility.cs +++ b/src/SharpCompress/Utility.cs @@ -11,8 +11,6 @@ namespace SharpCompress; internal static class Utility { - //80kb is a good industry standard temporary buffer size - private const int TEMP_BUFFER_SIZE = 81920; private static readonly HashSet invalidChars = new(Path.GetInvalidFileNameChars()); public static ReadOnlyCollection ToReadOnly(this IList items) => new(items); @@ -151,7 +149,7 @@ public static DateTime UnixTimeToDateTime(long unixtime) public static long TransferTo(this Stream source, Stream destination, long maxLength) { - var array = ArrayPool.Shared.Rent(TEMP_BUFFER_SIZE); + var array = ArrayPool.Shared.Rent(Common.Constants.BufferSize); try { var maxReadSize = array.Length; @@ -190,7 +188,7 @@ public static async Task TransferToAsync( CancellationToken cancellationToken = default ) { - var array = ArrayPool.Shared.Rent(TEMP_BUFFER_SIZE); + var array = ArrayPool.Shared.Rent(Common.Constants.BufferSize); try { var maxReadSize = array.Length; @@ -268,7 +266,7 @@ public static async Task SkipAsync( return; } - var array = ArrayPool.Shared.Rent(TEMP_BUFFER_SIZE); + var array = ArrayPool.Shared.Rent(Common.Constants.BufferSize); try { while (advanceAmount > 0) diff --git a/src/SharpCompress/Writers/GZip/GZipWriter.cs b/src/SharpCompress/Writers/GZip/GZipWriter.cs index ad1d59d77..68353284d 100644 --- a/src/SharpCompress/Writers/GZip/GZipWriter.cs +++ b/src/SharpCompress/Writers/GZip/GZipWriter.cs @@ -48,7 +48,7 @@ public override void Write(string filename, Stream source, DateTime? modificatio stream.FileName = filename; stream.LastModified = modificationTime; var progressStream = WrapWithProgress(source, filename); - progressStream.CopyTo(stream); + progressStream.CopyTo(stream, Constants.BufferSize); _wroteToStream = true; } diff --git a/src/SharpCompress/Writers/Zip/ZipWriter.cs b/src/SharpCompress/Writers/Zip/ZipWriter.cs index 8c4b96b6e..e11ac01dc 100644 --- a/src/SharpCompress/Writers/Zip/ZipWriter.cs +++ b/src/SharpCompress/Writers/Zip/ZipWriter.cs @@ -15,6 +15,7 @@ using SharpCompress.Compressors.PPMd; using SharpCompress.Compressors.ZStandard; using SharpCompress.IO; +using Constants = SharpCompress.Common.Constants; namespace SharpCompress.Writers.Zip; @@ -87,7 +88,7 @@ public void Write(string entryPath, Stream source, ZipWriterEntryOptions zipWrit { using var output = WriteToStream(entryPath, zipWriterEntryOptions); var progressStream = WrapWithProgress(source, entryPath); - progressStream.CopyTo(output); + progressStream.CopyTo(output, Constants.BufferSize); } public Stream WriteToStream(string entryPath, ZipWriterEntryOptions options) diff --git a/tests/SharpCompress.Test/Mocks/ForwardOnlyStream.cs b/tests/SharpCompress.Test/Mocks/ForwardOnlyStream.cs index 064d20662..dd9c76dc6 100644 --- a/tests/SharpCompress.Test/Mocks/ForwardOnlyStream.cs +++ b/tests/SharpCompress.Test/Mocks/ForwardOnlyStream.cs @@ -2,8 +2,8 @@ using System.IO; using System.Threading; using System.Threading.Tasks; +using SharpCompress.Common; using SharpCompress.IO; -using SharpCompress.Readers; namespace SharpCompress.Test.Mocks; @@ -31,8 +31,8 @@ void IStreamStack.SetPosition(long position) { } public bool IsDisposed { get; private set; } - public ForwardOnlyStream(Stream stream, int bufferSize = ReaderOptions.DefaultBufferSize) - : base(stream, bufferSize: bufferSize) + public ForwardOnlyStream(Stream stream, int? bufferSize = null) + : base(stream, bufferSize: bufferSize ?? Constants.BufferSize) { this.stream = stream; #if DEBUG_STREAMS diff --git a/tests/SharpCompress.Test/packages.lock.json b/tests/SharpCompress.Test/packages.lock.json index 7f87d400f..d36081cd8 100644 --- a/tests/SharpCompress.Test/packages.lock.json +++ b/tests/SharpCompress.Test/packages.lock.json @@ -29,12 +29,6 @@ "Microsoft.NETFramework.ReferenceAssemblies.net48": "1.0.3" } }, - "Mono.Posix.NETStandard": { - "type": "Direct", - "requested": "[1.0.0, )", - "resolved": "1.0.0", - "contentHash": "vSN/L1uaVwKsiLa95bYu2SGkF0iY3xMblTfxc8alSziPuVfJpj3geVqHGAA75J7cZkMuKpFVikz82Lo6y6LLdA==" - }, "xunit": { "type": "Direct", "requested": "[2.9.3, )", @@ -222,12 +216,6 @@ "Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3" } }, - "Mono.Posix.NETStandard": { - "type": "Direct", - "requested": "[1.0.0, )", - "resolved": "1.0.0", - "contentHash": "vSN/L1uaVwKsiLa95bYu2SGkF0iY3xMblTfxc8alSziPuVfJpj3geVqHGAA75J7cZkMuKpFVikz82Lo6y6LLdA==" - }, "xunit": { "type": "Direct", "requested": "[2.9.3, )",