Nanook
48a341b79c
Split archive handling fix. XZ stream decoding bug fix (in X64Convert filter). XZ stream support added to zip/zipx.
2023-02-02 00:18:37 +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
d6ac9a0363
Fix build
2022-12-20 13:09:16 +00:00
Lars Vahlenberg
0ae75634b1
SourceStream Position counting bug fix
2022-07-30 16:28:43 +02:00
Adam Hathcock
8cb566b031
Merge branch 'master' into feature/#636
2022-06-22 09:05:57 +01:00
Lars Vahlenberg
089b16326e
ReadOnlySubStream overrides and adds logic to Read byte[], needs to have same logic for Span<byte> for consistency.
2022-06-21 19:30:07 +02:00
Adam Hathcock
62c94a178c
Merge branch 'master' into Task_477
2022-06-20 10:26:45 +01:00
Martin Demberger
35336a0827
Suppress nested NonDisposingStream
2022-06-19 22:05:52 +02:00
Martin Demberger
8b55cce39a
Better handling of uncompressed zip files.
2022-06-15 16:28:14 +02:00
Craig
61c01ce9b0
Properly integrated zip multivolume and split support.
2022-04-30 19:35:40 +01:00
Craig
224614312f
Added multipart Zip support (z01...). Added IEntry.IsSolid and implemented Rar and 7Zi[ support.
2022-04-25 01:16:53 +01:00
Craig
ec1999f73d
Added Split archive support with unit tests. Added ArchiveFactory.IsArchive() and minor refactor.
2022-04-21 00:12:26 +01:00
Jeff Tyson
1561bba538
Add net462 target to clean up issues with system.* nuget dependencies
2021-09-29 21:55:11 +00:00
Adam Hathcock
0f06c3d934
Fix rewindable stream to expose length
2021-01-13 14:40:36 +00:00
Adam Hathcock
5357bd07c7
Let dotnet format do it’s thing
2021-01-09 13:33:34 +00:00
Jason Nelson
d8804ae108
Improve conditional logic to prepare to add .NETCOREAPP target
2020-11-18 09:19:21 -08:00
Jason Nelson
ee3162ad71
Fix return
2020-07-30 17:49:29 -07:00
Jason Nelson
4357165163
Add Read/Write overrides to NonDisposingStream
2020-07-30 17:36:03 -07:00
Adam Hathcock
400d2c1774
Fix usings and add braces for better merging
2020-04-03 08:47:30 +01:00
Bond_009
80b0671844
Reduce the amount of allocations
...
* Directly fill an array instead of filling a List and copying that to
an array
* Use own buffer when writing bytes to a stream
* Remove DataConverter class, replaced by BinaryPrimitives
2019-12-30 18:58:25 +01:00
Adam Hathcock
9540b01bcc
NET Standard 1.3 and 2.0 only ( #482 )
...
* Remove NET35, NET45 and NET Standard 1.0
* Update README and memset
* Remove NETCORE build flag
* NET 46 too?
* Update packages and usage
2019-10-10 09:24:41 +01:00
Matt Kotsenas
6d1d62fd32
Delete AppendingStream
...
`AppendingStream` is unused, so rather than refactor it, just delete it.
2018-07-11 16:21:19 -07:00
Matt Kotsenas
ee4ae661d7
Refactor ListeningStream
...
Refactor `ListeningStream`:
- Override of `WriteByte` was redundant and removed
- Make `Dispose` delegate to base class
2018-07-11 16:21:19 -07:00
Matt Kotsenas
cab1ce3d0c
Update sub-streams to uniformly inherit from NonDisposingStream
...
Update the sub-stream classes to all inherit from `NonDisposingStream`.
This allows them to correctly implement the `Dispose` pattern, and delegate
the actual disposal to `NonDisposingStream`.
In doing so, we need to remove some redundant overrides from
`NonDisposingStream`, otherwise `BufferedSubStream` would use the
overrides inherited from `NonDisposingStream` instead of the ones
inherited from `Stream` (i.e. delegate `ReadByte` to `Read`).
2018-07-11 16:17:49 -07:00
Matt Kotsenas
6c2e5e1164
Cleanup NonDisposingStream for reuse
...
- Remove the duplicate `GC.SuppressFinalization` call
(called in `System.IO.Stream)
- Improve the `ThrowOnDispose` error message
2018-07-11 12:19:34 -07:00
Julien Lebosquain
540618c062
Implemented ReadByte/WriteByte on streams to improve performance
2018-05-27 16:31:44 +02:00
Adam Hathcock
3f94c1a50d
Remove lingering uses of non disposing stream
2018-05-08 14:10:49 +01:00
Adam Hathcock
33f7258ea2
Merge branch 'master' into leaveOpen
...
# Conflicts:
# src/SharpCompress/Common/Rar/Headers/RarHeaderFactory.cs
# src/SharpCompress/Readers/Rar/RarReader.cs
2018-04-29 14:47:08 +01:00
Adam Hathcock
89ae8ca526
Rejigger read only substream
2018-04-22 11:32:47 +01:00
Adam Hathcock
f18e5b75bb
Archives set up correctly
2018-04-22 10:06:30 +01:00
Adam Hathcock
e919c99b14
First pass of removing explicit leaveOpen on streams.
2018-04-22 10:02:18 +01:00
coderb
5f121c5da4
rar5 wip
2017-12-17 07:39:02 -05:00
coderb
72f52359e6
rar5: wip
2017-12-17 01:58:40 -05:00
coderb
9f549b98da
rar5: support ArchiveHeader, additional rar5 header implementation
2017-12-16 20:39:53 -05:00
coderb
c346a4ca94
rar5: change rar MarkHeader detection logic to support rar5
2017-12-16 17:35:07 -05:00
Adam Hathcock
3da3b212fa
create new memorystream to allow proper resizing as memorystream could be a user provided buffer. Update xunit ( #307 )
2017-12-04 18:48:38 +00:00
Martijn Kant
c2528cf93e
Mk/add support for extracting password protected LZMA(2) 7z archives ( #324 )
...
* Added possibility to decompress a password protected 7z LZMA archive
* Fix tests
2017-12-04 10:55:30 +00:00
Adam Hathcock
b10a1cf2bd
Bug on Windows on .NET Core fix ( #257 )
...
* Bug on Windows on .NET Core fix: https://github.com/dotnet/corefx/issues/20676
* Add comment
2017-06-09 08:22:47 +01:00
Adam Hathcock
912d7a8775
Lzip ( #245 )
...
* First pass. Writing isn't implemented on stream. Tests are busted.
* LZipReader works...no file name :(
* LZipWriter works
* Writing tests are actually correct now. LZipStream correctly writes trailer now. lzip command line tool likes it.
* Add recommendation blurb
* Update notes for formats
* LZip isn't an archive format
* Attempting to fix and implement crc32
* LZip writing test passes
* Had to invert crc to check uncompressed data.
2017-05-31 16:51:24 +01:00
Adam Hathcock
8be931bbcb
Doing some resharper clean up
2017-05-19 10:52:49 +01:00
Brien Oberstein
97d5e0aac4
verify rar CRC on header and file data
2017-04-04 12:20:06 -04:00
Kenneth Skovhede
1263c0d976
Added support for writing zip64 headers
2017-03-09 23:56:42 +01:00
Adam Hathcock
d732e3cfa4
Renamespace for proper pluralization
2016-09-26 11:49:49 +01:00
Adam Hathcock
efa6f7a82e
Huge Resharper clean up. Fixed up test project.json
2016-09-26 10:55:52 +01:00
Adam Hathcock
bd8ba7b854
Test with ForwardOnlyStream. RewindableStream shouldn't corrupt a ForwardOnlyStream ( #161 )
2016-08-12 11:56:49 +01:00
Tobias Käs
9224237a99
Fix for issue #73 ( #154 )
...
7z archives may require alternating reads from multiple substreams so it is important to seek before reading from the underlying stream. To keep performance at an acceptable level it is necessary to perform buffering because seeking on every single one-byte-read will destroy performance.
2016-07-21 11:06:25 +01:00
Adam Hathcock
ef0bf2758e
Add Silverlight 5
2016-07-13 13:26:01 +01:00