69 Commits

Author SHA1 Message Date
Timofey Solomko 0359b943ea [ZIP] Mark customExtraFields as nonisolated(unsafe)
This is a temporary measure to "fix" compilation errors in Swift 6 language mode. Ultimately, this is a global variable which is not really concurrency-safe, so the entire custom extra field management system should be rethought.
2026-05-26 11:19:28 +08:00
Timofey Solomko 1566b49ce3 [7-Zip][ZIP] Remove support for CocoaPods optional dependencies 2026-02-03 01:15:33 +08:00
Timofey Solomko ea9aaccfb9 Update copyright year to 2026 2026-01-31 15:30:24 +08:00
Timofey Solomko ed66991cbd Update copyright year to 2024 2024-01-11 16:57:04 +03:00
Timofey Solomko 43132fc39d Update copyright year to 2023 2023-02-07 15:31:45 +02:00
Timofey Solomko 79295db930 Update copyright year to 2022 2022-01-08 15:02:59 +03:00
Timofey Solomko a3332364a7 [Tests] Add many tests that check that checksum errors are thrown correctly 2021-10-29 19:26:33 +03:00
Timofey Solomko e83f23effa Update copyright year to 2021 2021-01-11 11:20:57 +02:00
Timofey Solomko deab72a831 Merge branch 'hotfix-4.5.7' into develop 2020-10-16 15:57:08 +03:00
Timofey Solomko 9360a8a9b8 [ZIP] Fix a crash when opening a very small file
Such files (smaller than 22 bytes) definitely don't have a EndOfCD and in this case ZipError.notFoundCentralDirectoryEnd should be properly thrown.
2020-10-15 23:35:22 +03:00
Timofey Solomko fa552e9b61 [ZIP] Fix a crash when opening a file without EndOfCD
Now ZipError.notFoundCentralDirectoryEnd is correctly thrown as was originally intended.
2020-10-14 23:51:27 +03:00
Timofey Solomko a844b34436 Update copyright year to 2020 2020-03-20 09:43:42 +03:00
Timofey Solomko f6949a8f66 Replace the usage of the deprecated Data(bytes:) initializer 2020-03-20 09:40:48 +03:00
Timofey Solomko 31ec1f1553 Update copyright year to 2020 2020-01-01 19:06:33 +03:00
Timofey Solomko 75b21ae107 Replace usage of ByteReader with LittleEndianByteReader 2019-05-01 19:34:30 +03:00
Timofey Solomko db82490ed8 Replace the usage of the deprecated Data(bytes:) initializer 2019-05-01 19:30:48 +03:00
Timofey Solomko ce47019097 Update copyright year to 2019 2019-01-02 23:15:43 +03:00
Timofey Solomko 12d8836529 [ZIP] Use the new ZipEntryInfoHelper and remove its properties from ZipEntryInfo 2019-01-01 13:28:50 +03:00
Timofey Solomko f5d8d9e81e [LZMA] Add LZMAProperties initializer which reads lzma encoded properties from bytereader 2018-08-28 11:36:34 +03:00
Timofey Solomko 9a79aa8e51 [LZMA][ZIP] Add public function with data as first argument and internal function with byteReader instead which also accept LZMA properties and uncompressed size as
arguments; replace old internal decompress function used by ZIP with a new, more general one
2018-08-28 11:35:56 +03:00
Timofey Solomko c9115f367b [ZIP] Replace stored local header and cd entry in ZipEntryInfo with separate actually required properties 2018-08-13 11:38:42 +03:00
Timofey Solomko 1264a194c2 [docs] Refer to "standard" extra fields as "built-in" 2018-08-12 20:52:44 +03:00
Timofey Solomko e467370de7 [LZMA] Remove second label from internal LZMA.decompress function and simplify uncompSize processing 2018-05-20 12:26:25 +03:00
Timofey Solomko d5c8600137 Use more new BBD functions 2018-04-10 22:37:20 +03:00
Timofey Solomko 05852b179b Use new int(fromBytes:) function 2018-04-10 22:37:16 +03:00
Timofey Solomko d4b728125b [docs] Add documentation for ZIP custom extra fields related APIs 2018-03-31 13:46:04 +03:00
Timofey Solomko e35ea703dc [ZIP] Add support for custom extra fields 2018-03-31 12:25:17 +03:00
Timofey Solomko 309a07ed15 [docs] Slightly simplify notes about entries order of container functions 2018-03-17 15:37:41 +03:00
Timofey Solomko 4888f37f0f Revert addition of BBD-related public APIs to Zlib, LZMA and BZip2 2018-03-02 23:32:39 +03:00
Timofey Solomko 8b4ff5c040 [BZip2] Make decompress(_ bitReader:) function public and add "from" label to its argument 2018-02-23 12:58:24 +03:00
Timofey Solomko 3d502071bb [ZIP] Use new BBD's converting inits when decompressing 2018-02-23 12:58:24 +03:00
Timofey Solomko 2be06c8c0a Use ByteReader in all ZIP-related code
We can do this since we don't have asynchronous concerns anymore.
2018-01-07 15:12:59 +03:00
Timofey Solomko e714dc308b Updated copyright year to 2018 2018-01-03 19:44:18 +03:00
Timofey Solomko e986561487 Replace Int() conversions with toInt() functions 2018-01-03 19:22:15 +03:00
Timofey Solomko c8d92e56d3 Replace BitReader and ByteReader with BitByteData's implementations 2018-01-03 19:22:15 +03:00
Timofey Solomko 20ab480737 Complete renaming of DataWithPointer to ByteReader
This includes renaming pointerData variables to byteReader as well as renaming of files with extensions to ByteReader.
2018-01-03 19:22:14 +03:00
Timofey Solomko b9eeb1bc7c Rename ByteReader.index to offset 2018-01-03 19:22:13 +03:00
Timofey Solomko 3751e25c4f Rename DataWithPointer to ByteReader
This and following commits should ease switch to BitByteData usage.
2018-01-03 19:22:13 +03:00
Timofey Solomko b9cebf13e9 Remove dwp functions with count argument 2017-11-22 22:08:02 +03:00
Timofey Solomko 556e42e179 Add and update documentation 2017-11-14 20:37:20 +03:00
Timofey Solomko feb41deed1 Return Data instead of UInt8 arrays in internal decompress functions 2017-11-11 12:54:31 +03:00
Timofey Solomko 03e6ed4256 Deal with Data object instead of bytes array in ZipContainer's getEntryData() 2017-11-11 12:49:49 +03:00
Timofey Solomko acb3d4d231 Simplify Zip's LZMA code by utilizing main LZMA decompress function 2017-11-11 12:48:08 +03:00
Timofey Solomko 2ff3b12b73 Remove converting sizes to Int in ZipContainer.getEntryData 2017-11-11 12:46:55 +03:00
Timofey Solomko 1f752affc3 ZipError.wrongCRC now includes all already processed entries 2017-11-04 22:11:55 +03:00
Timofey Solomko 9236940eac Rename ZipError.wrongCRC32 to ZipError.wrongCRC 2017-11-04 17:28:57 +03:00
Timofey Solomko f6808671a9 Add workaround for compilation problem in ZipContainer 2017-10-31 20:18:53 +03:00
Timofey Solomko c445e09c92 Rename LZMATempDecoder into LZMADecoder 2017-10-29 12:54:35 +03:00
Timofey Solomko bca275f3aa Remove label from the argument of setProperties function 2017-10-29 12:37:28 +03:00
Timofey Solomko 75ecd316a9 Use new LZMA decoder in ZIP 2017-10-29 12:08:15 +03:00