1539 Commits

Author SHA1 Message Date
Timofey Solomko 45ab158717 Make TarContainer conform to Container protocol 2017-10-08 22:04:05 +03:00
Timofey Solomko 0a180789bb Remove info-related code from TarEntry 2017-10-08 20:34:16 +03:00
Timofey Solomko b99b062534 Add TarEntryInfo class 2017-10-08 20:32:51 +03:00
Timofey Solomko 4a9fbc4ff5 Extract tar specific extensions into separate files 2017-10-08 20:32:39 +03:00
Timofey Solomko 9c44244b24 Remove TarError.wrongUstarVersion 2017-10-08 20:19:40 +03:00
Timofey Solomko e36c22f707 Fix some inconsistencies with size and data in SevenZip in different cases (dir, empty file, anti file) 2017-10-08 20:18:33 +03:00
Timofey Solomko d8554e0131 Remove info-related properties and entryAttributes from SevenZipEntry and make it conform to ContainerEntry 2017-10-08 20:03:23 +03:00
Timofey Solomko a2540545c1 Conform SevenZipEntryInfo to corresponding protocol 2017-10-08 20:02:44 +03:00
Timofey Solomko 7a1243c3fa Make ContainerEntryInfo properties optional 2017-10-08 20:02:24 +03:00
Timofey Solomko bf763e53c0 Remove Container protocols conformance and make open(container:) methods return fixed types 2017-10-08 19:49:57 +03:00
Timofey Solomko f2807a1ec5 Start rework of Container API
Add associated types, add info protocol, remove entryAttributes, add entry type property and enum. Docs comments were also removed so I won't forget update documentation before release.
2017-10-08 19:47:23 +03:00
Timofey Solomko 7b6b729480 Remove XZArchive.multiUnarchive and make unarchive work with multi-streams
This was done, because, apparently, some real world archives (e.g. linux kernel source code archive) are multi-stream.
2017-10-08 16:16:41 +03:00
Timofey Solomko 7eacfe7ab6 Extract private functions for stages of bzip2 processing 2017-10-07 15:16:21 +03:00
Timofey Solomko 9abb475e2b Simplify write of used bytes map and selectors used in bzip2 2017-10-07 15:15:08 +03:00
Timofey Solomko 264e9b9e1e Extract private functions in bzip2 huffman code length generation 2017-10-07 15:14:00 +03:00
Timofey Solomko 9e02a88391 Reduce usage of for-where clause
Sometimes it is inappropriate and single if is more logical.
2017-10-07 13:09:55 +03:00
Timofey Solomko 5da624e75f Use new data slicing in bzip2 compress 2017-10-07 12:28:03 +03:00
Timofey Solomko 21467899db Use new reduce function in bzip2 decompress 2017-10-07 12:27:51 +03:00
Timofey Solomko 58768ba466 Revert change to suffix array
endIndex means the same thing as count in that context.
2017-10-07 12:26:56 +03:00
Timofey Solomko 8b22ff2b6a Update code with swift 4 changes to strings 2017-10-07 12:26:11 +03:00
Timofey Solomko 5b18623bc6 Update check sums code to iterate not over indices but elements 2017-10-07 12:25:07 +03:00
Timofey Solomko b4bdd16b5e Fix compile problem on linux 2017-10-07 00:09:07 +03:00
Timofey Solomko 843896edcf Move source code files into subfolders 2017-10-06 23:10:01 +03:00
Timofey Solomko 098f97b0c8 Perform automatic migration to swift 4 2017-10-04 22:45:44 +03:00
Timofey Solomko a432bcd4b7 Prepare for 3.4.0 release 2017-10-03 22:24:56 +03:00
Timofey Solomko 655e9805c8 Small code cleanup in ZipEntry 2017-10-03 22:24:14 +03:00
Timofey Solomko 8d04857253 Update docs comments 2017-10-03 22:12:04 +03:00
Timofey Solomko 8881c60b46 Prepare for second test release 2017-10-02 23:20:48 +03:00
Timofey Solomko 41a6c9bae3 Various refactors and fixes for swiftlint 2017-10-02 23:11:38 +03:00
Timofey Solomko 7a33936382 Fix compile problems on some platforms 2017-10-02 22:32:34 +03:00
Timofey Solomko 9d2852cd30 Prepare for test release 2017-10-02 00:40:35 +03:00
Timofey Solomko 4609fa0969 Swiftlint autocorect 2017-10-02 00:31:37 +03:00
Timofey Solomko 480faf58bb Improve bzip2 compress code by using Int instead of UInt8 for out array 2017-10-02 00:28:00 +03:00
Timofey Solomko 93cf37fa5e Merge two BZip2+Compress extensions 2017-10-02 00:24:05 +03:00
Timofey Solomko ddcd0c9a94 Confrom Deflate and BZip2 to CompressionAlgorithm protocol 2017-10-02 00:23:04 +03:00
Timofey Solomko 14076a9f25 Add CompressionAlgorithm protocol 2017-10-02 00:22:44 +03:00
Timofey Solomko aa8df11302 Add block size changing support for bzip2 compression 2017-10-02 00:16:41 +03:00
Timofey Solomko f553b2ed9e Small code improvements 2017-10-02 00:07:54 +03:00
Timofey Solomko a4fe1c3b77 Add CheckType enum for xz archive 2017-10-02 00:06:42 +03:00
Timofey Solomko eca7f4a91a Extract code for reverse BWT into BurrowsWheeler class 2017-10-01 15:05:44 +03:00
Timofey Solomko 58cb43959f Extract deflate constants into separate file as an extension 2017-10-01 15:02:58 +03:00
Timofey Solomko c6a7379d0f Fix runLength overflow problems 2017-10-01 14:52:36 +03:00
Timofey Solomko 7c544e7973 Fix bw transformation from suffix array 2017-10-01 13:29:06 +03:00
Timofey Solomko 2611f08b74 Fix suffix array construction problems 2017-10-01 13:28:15 +03:00
Timofey Solomko b29644c8af Merge branch 'hotfix-3.3.1' into develop 2017-10-01 11:31:19 +03:00
Timofey Solomko d423d9d136 Prepare for 3.3.1 2017-10-01 11:29:22 +03:00
Timofey Solomko 445c57039e Fix out of range crash in BitReader
Swift 4 apparently has different behavior in regards out of range indices for Data object. Previously, in such cases it was returning 0 (or some other value), now it just crashes (which is, I think, is better behavior).
2017-10-01 11:20:51 +03:00
Timofey Solomko d8048a4405 Rename selector(s)List variables in bzip2 to selector(s) 2017-10-01 01:05:58 +03:00
Timofey Solomko 8933e6b3c6 Remove useless print statement from bzip2 compress 2017-09-27 22:48:51 +03:00
Timofey Solomko 823d383ab3 Make bzip2 mtf function private 2017-09-27 22:04:36 +03:00