Adam Hathcock
c7b8021c2e
remove extra debug
2026-02-04 10:08:50 +00:00
Adam Hathcock
cb27b117b4
remove IStreamStack from non specialized streams
2026-01-31 19:03:49 +00:00
Adam Hathcock
037b6842bf
remove SharpCompressStream
2026-01-31 15:29:34 +00:00
Adam Hathcock
e2cb9f39ab
fix up rewindable stream and use it more, add NonDisposingStream
2026-01-29 09:08:40 +00:00
Adam Hathcock
c219eb4abb
Merge branch 'release'
...
# Conflicts:
# src/SharpCompress/Archives/ArchiveFactory.cs
# src/SharpCompress/Archives/AutoArchiveFactory.cs
# src/SharpCompress/Archives/SevenZip/SevenZipArchive.cs
# src/SharpCompress/Archives/Zip/ZipArchive.cs
# src/SharpCompress/Factories/AceFactory.cs
# src/SharpCompress/Factories/ArcFactory.cs
# src/SharpCompress/Factories/ArjFactory.cs
# src/SharpCompress/Factories/Factory.cs
# src/SharpCompress/Factories/GZipFactory.cs
# src/SharpCompress/Factories/IFactory.cs
# src/SharpCompress/Factories/RarFactory.cs
# src/SharpCompress/Factories/SevenZipFactory.cs
# src/SharpCompress/Factories/TarFactory.cs
# src/SharpCompress/Factories/ZStandardFactory.cs
# src/SharpCompress/Factories/ZipFactory.cs
# src/SharpCompress/IO/SharpCompressStream.cs
# src/SharpCompress/Readers/AbstractReader.cs
# src/SharpCompress/Utility.cs
2026-01-28 11:12:49 +00:00
Adam Hathcock
0a50386ada
Using Constants class differently
2026-01-27 10:46:54 +00:00
Adam Hathcock
04eabb7866
Merge remote-tracking branch 'origin/master' into adam/async-creation
...
# Conflicts:
# src/SharpCompress/Common/EntryStream.cs
# src/SharpCompress/IO/BufferedSubStream.cs
# src/SharpCompress/packages.lock.json
2026-01-26 14:16:14 +00:00
Adam Hathcock
bf4217fde6
Merge pull request #1156 from adamhathcock/copilot/fix-sharpcompress-archive-iteration
...
Fix silent iteration failure when input stream throws on Flush()
# Conflicts:
# src/SharpCompress/packages.lock.json
2026-01-24 10:18:02 +00:00
copilot-swe-agent[bot]
41e0c151de
Fix regression: archive iteration breaking when input stream throws in Flush()
...
- Modified ZlibBaseStream.Flush() and FlushAsync() to only flush the underlying stream when in Writer mode
- Added ThrowOnFlushStream mock for testing
- Added regression tests for Deflate and LZMA compressed archives
- All tests pass successfully
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-23 16:04:09 +00:00
Adam Hathcock
c5814502f6
clean up and fixing tests....need to revisit disposal
2026-01-22 16:24:07 +00:00
Adam Hathcock
5152e3197e
fix build flags
2026-01-22 15:12:18 +00:00
Adam Hathcock
0a9c5bfe15
format changes
2026-01-20 13:40:51 +00:00
Adam Hathcock
2175cb299d
tar fixes
2026-01-20 12:22:38 +00:00
copilot-swe-agent[bot]
2012077fb0
Remove redundant _stream field from AsyncOnlyStream and use base Stream property
...
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-16 09:34:29 +00:00
Adam Hathcock
a410f73bf3
archive asyncs are more right
2026-01-15 14:52:10 +00:00
Adam Hathcock
a1a86cdde8
fmt
2026-01-13 14:29:10 +00:00
Adam Hathcock
0b5371d986
more async fixing
2026-01-13 14:06:14 +00:00
Adam Hathcock
fbce3e77ba
Merge branch 'master' into adam/async
...
# Conflicts:
# src/SharpCompress/Utility.cs
2026-01-07 12:11:19 +00:00
copilot-swe-agent[bot]
41ed4c8186
Add negative test case for premature stream termination
...
Added Rar_StreamValidation_ThrowsOnTruncatedStream test that verifies InvalidOperationException IS thrown when a RAR stream ends prematurely (position < expected length). Created TruncatedStream mock to simulate corrupted/truncated RAR files. This test validates the exception condition (_position < Length) works correctly.
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-04 11:47:57 +00:00
copilot-swe-agent[bot]
ea02d31096
Add IsArchiveAsync overloads for Zip and GZip factories
...
- Added IsArchiveAsync interface method to IFactory
- Implemented async versions of IsZipFile, IsZipMulti, IsGZipFile
- Updated ZipFactory and GZipFactory to override IsArchiveAsync
- Updated ReaderFactory.OpenAsync to use IsArchiveAsync
- Fixed Zip_Reader_Disposal_Test2_Async to use ReaderFactory.OpenAsync
- Fixed TestStream to properly forward ReadAsync calls
- Removed BufferedStream wrapping from AsyncBinaryReader as it uses sync Read
- Added default implementation in Factory base class
Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com >
2026-01-02 18:10:54 +00:00
Adam Hathcock
8533b09091
start of implementing zip reading async
2025-12-31 14:53:55 +00:00
Adam Hathcock
44b7955d85
reader tests
2025-12-31 14:43:15 +00:00
Adam Hathcock
153d10a35c
add async to forward only streams
2025-10-28 11:30:12 +00:00
Adam Hathcock
42f7d43139
enable zip64 tests that pass
2025-10-28 11:07:53 +00:00
Adam Hathcock
19967f5ad7
allow forward only write
2025-10-28 11:01:27 +00:00
Nanook
587675e488
Fixed some missing features caused by merging an earlier branch than required.
2025-07-21 23:45:57 +01:00
Nanook
938775789d
Formated with Sharpier.
2025-07-20 18:11:37 +01:00
Nanook
21f14cd3f2
Added IStreamStack for debugging and configurable buffer management. Added SharpCompressStream to consolodate streams to help simplify debugging. All unit tests passing.
2025-07-20 17:35:22 +01:00
Morilli
f51bdd56aa
expose Position getter in ForwardOnlyStream
2024-12-19 20:41:00 +01:00
Adam Hathcock
94d1503c64
more clean up
2024-03-14 08:57:16 +00:00
Adam Hathcock
5f13e245f0
more clean up on tests
2024-03-14 08:53:08 +00:00
Lars Vahlenberg
4477833b1d
Issue 771, remove throw on flush for readonly streams
2024-01-06 00:14:34 +01:00
Adam Hathcock
16e8dd447b
update csharpier
2023-03-21 13:14:08 +00:00
Adam Hathcock
b01e97b168
more clean up
2022-12-20 15:20:49 +00:00
Adam Hathcock
7da10795a1
csharpier
2022-12-20 15:14:22 +00:00
Adam Hathcock
959bbdcf1b
big clean up
2022-12-20 15:06:44 +00:00
Adam Hathcock
970e31a1b1
cleanup and run csharpier
2022-12-20 13:45:47 +00:00
Adam Hathcock
5357bd07c7
Let dotnet format do it’s thing
2021-01-09 13:33:34 +00:00
Knut Ørland
53ad00cdc4
Use soft tabs
2018-10-04 13:13:14 +02:00
Knut Ørland
6dd5da48f7
Added test that calls EntryStream.Flush()
2018-10-04 13:08:53 +02:00
Matt Kotsenas
3c2f4ebe9b
Combine ForwardOnlyStream and NonSeekableStream
...
Delete `NonSeekableStream` used in Zip64 tests in favor
of `ForwardOnlyStream` used in Mocks.
Additionally, delete the `ForwardOnlyStream.ReadByte` implementation
as the implementation on the base Stream is sufficient.
2018-07-11 16:42:03 -07:00
Matt Kotsenas
98558c5ba9
Refactor TestStream constructor
...
Refactor the `TestStream` constructor so by default it defers to
the underlying Stream
2018-07-11 16:21:19 -07:00
Matt Kotsenas
6c25322465
Follow best-practices for Dispose in Volume and ForwardOnlyStream
...
Update `Volume` and `ForwardOnlyStream` to follow the project's
general pattern and best-practices for `Dispose`
2018-07-11 16:21:19 -07:00
Matt Kotsenas
6ae715b153
Move the TestStream and ForwardOnlyStream to Mocks folder
...
Move the `TestStream` and `ForwardOnlyStream` to Mocks/ to separate them
from the test classes.
2018-07-10 12:07:32 -07:00