Christian
3e32e3d7b1
Allowing to seek empty zip files
2021-09-02 13:54:32 +02:00
Daniel Nash
fdc33e91bd
Conditionally parse Zip64 extra field based on specification
...
The Zip64 extra field should look for values based on the corresponding
values in the local entry header.
Fixes adamhathcock/sharpcompress#595
2021-04-26 14:58:10 -04:00
Adam Hathcock
eb81f972c4
Merge branch 'master' into feature/521
2021-02-16 08:01:32 +00:00
Lars Vahlenberg
93c1ff396e
Not so elegant perhaps
2021-02-14 16:29:01 +01:00
Adam Hathcock
5b52463e4c
Merge pull request #570 from Erior/feature/555
...
Propsal for handling Zip with long comment
2021-02-14 12:52:42 +00:00
Lars Vahlenberg
d1d2758ee0
Propsal for handling Zip with long comment
2021-02-13 23:57:03 +01:00
Brendan Grant
5b86c40d5b
Properly detect if RAR is complete at the end or not
2021-02-13 13:34:57 -06:00
Adam Hathcock
2dd17e3882
Be explicit about zip64 extra field sizes. Formatting
2021-02-13 07:05:53 +00:00
Adam Hathcock
c4f7433584
Merge pull request #567 from Nanook/master
...
Zip64 Header and Size fix
2021-02-13 06:58:41 +00:00
Bond_009
cd677440ce
Use stackallocs where possible/sensible
2021-02-12 20:20:15 +01:00
Craig Greenhill
c06f4bc5a8
Zip64 Header and Size fix
2021-02-11 09:37:59 +00:00
Adam Hathcock
52c44befa2
Merge pull request #560 from adamhathcock/gzip-fixes
...
Expose Last Modified time on GZipStream. Add CRC and Size to GZipEntries on Archive
2021-01-11 08:57:19 +00:00
Adam Hathcock
7edc437df2
formatting
2021-01-09 13:40:57 +00:00
Adam Hathcock
57e4395e7d
Merge branch 'master' into net5
...
# Conflicts:
# build/Program.cs
# src/SharpCompress/Common/Zip/ZipFilePart.cs
2021-01-09 13:40:09 +00:00
Adam Hathcock
ee17dca9e5
Fix formatting
2021-01-09 13:36:30 +00:00
Adam Hathcock
e9f3add5b9
Merge branch 'master' into gzip-fixes
2021-01-09 13:35:52 +00:00
Adam Hathcock
5357bd07c7
Let dotnet format do it’s thing
2021-01-09 13:33:34 +00:00
Adam Hathcock
8598885258
Read trailer for GZip for CRC and uncompressed size
2021-01-09 13:22:06 +00:00
Adam Hathcock
147be6e6e1
Use Net5, NetCoreApp3.1, NetStandard2.1, NetStandard2.0 only
2021-01-09 10:34:49 +00:00
Jason Nelson
9a17449a02
Format NewSubHeaderType
2020-11-18 09:44:13 -08:00
Jason Nelson
087a6aad8c
Cross target .NETCOREAPP3.1 and react to new nullablity annotations
2020-11-18 09:43:08 -08:00
Jason Nelson
b57df8026a
Use pattern matching
2020-11-18 09:29:38 -08:00
Jason Nelson
8090d269e7
Add polyfills for string.EndWith(char) && string.Contains(char)
2020-11-18 09:16:53 -08:00
Jason Nelson
b0101f20c5
Eliminate culture specific StartsWith comparisions
2020-11-18 09:12:01 -08:00
Jason Nelson
dd48e4299a
Simplify .NET framework code exclusions, bump min .NET framework version to 4.6.1
2020-11-18 09:07:30 -08:00
Jason Nelson
62f7238796
Make CMethodId readonly
2020-07-31 16:49:34 -07:00
Jason Nelson
c618eacad4
Optimize RijndaelEngine
2020-07-31 16:22:44 -07:00
Jason Nelson
40af9359db
Pollyfill and use Stream.Read(Span<byte> buffer)
2020-07-31 16:08:38 -07:00
Jason Nelson
d6bf9dae42
Eliminate allocation
2020-07-31 16:01:09 -07:00
Jason Nelson
4db615597d
Refactor ExtraData and enable nullable
2020-07-30 16:48:22 -07:00
Jason Nelson
6bdf2365fc
Inline variable declarations
2020-07-30 16:45:38 -07:00
Adam Hathcock
42ba8cf828
Merge branch 'master' into default-encoding
2020-07-26 12:06:22 +01:00
Daniel Nash
d055b34efe
Ensure TarArchive enumerates all entries
...
While enumerating the entries of a tar file and writing their contents
to disk using TarArchive, it was discovered TarArchive was not properly
discarding padding bytes in the last block of each entry. TarArchive was
sometimes able to recover depending on the number of padding bytes due
to the logic it uses to find the next entry header, but not always.
TarArchive was changed to use TarReadOnlySubStream when opening entries
and TarReadOnlySubstream was changed to ensure all an entry's blocks are
read when it is being disposed.
Fixes adamhathcock/sharpcompress#524
2020-07-20 12:57:39 -04:00
Adam Hathcock
4354e82bb5
Don’t use 437 Encoding by default anymore.
2020-07-16 14:28:37 +01:00
Adam Hathcock
00ff119ec4
Minor Rider issues resolved. Still two outstanding.
2020-05-24 08:42:36 +01:00
Jason Nelson
5b6a1c97e3
Enable nullable
2020-05-23 16:27:55 -07:00
Adam Hathcock
fa949e089e
Merge pull request #512 from adamhathcock/fix-codepages
...
Attempt Windows reference fix
2020-05-22 13:44:10 +01:00
RealOrko
538b38869f
Added a warning for the writing of symbolic links with a link to the original GitHub issue for the DOTNET runtime
2020-05-21 13:00:25 +01:00
Adam Hathcock
ce328ed90b
Merge branch 'master' into fix-codepages
2020-05-15 08:28:25 +01:00
Adam Hathcock
632bae725d
Add braces for clarity
2020-05-14 13:47:21 +01:00
Adam Hathcock
4f824b1d9a
Add build flags for Core targets
2020-05-14 13:16:00 +01:00
Berkan Diler
ccb9593de2
Replace Span<T>.Fill(0) with Span<T>.Clear()
2020-04-10 12:03:32 +02:00
Adam Hathcock
400d2c1774
Fix usings and add braces for better merging
2020-04-03 08:47:30 +01:00
Lars Vahlenberg
9bf9d34d94
Issue86 Proposal
2020-01-16 22:08:48 +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
Bond_009
637223aa53
Use nameof for param names
2019-09-17 13:28:44 +02:00
itn3000
6bfa3c25a4
add more comments
2019-06-27 20:01:40 +09:00
itn3000
1ea9ab72c1
add comment for subtracting
2019-06-27 19:59:16 +09:00
itn3000
07c42b8725
replace magic number
2019-06-27 10:59:21 +09:00