665 Commits
Author SHA1 Message Date
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
Timofey Solomko 25f6d4f5ac Make bzip2 lengths creation algorithm slightly more space efficient 2017-09-27 22:04:26 +03:00
Timofey Solomko d3839a70ad Rename files with compress extensions 2017-09-27 22:02:42 +03:00
Timofey Solomko 49b7de06a3 Create multiple bzip2 blocks 2017-09-27 22:01:57 +03:00
Timofey Solomko 401d3cf26b Extract code for BW transformation 2017-09-27 20:04:01 +03:00
Timofey Solomko 70b02066fc Fix potential crash with index out of range in selectorList in BZip2
Both compression and decompression.
2017-09-17 20:23:47 +03:00
Timofey Solomko f8d4451c18 Remove recursive procedure for huffman lengths generation 2017-09-17 13:03:59 +03:00
Timofey Solomko 3a0335d5f5 Use new lengths creation function in BZip2 compression 2017-09-17 13:03:03 +03:00
Timofey Solomko e5d2b78781 Add new procedure for huffman code length generation 2017-09-17 13:02:09 +03:00
Timofey Solomko 34f718e152 Add BZip2 compression implementation 2017-09-10 13:10:36 +03:00
Timofey Solomko 26d7e7e1b4 Add SuffixArray implementation 2017-09-10 13:09:40 +03:00
Timofey Solomko 70411024d1 Slightly updated bitSize function of EncodingHuffmanTree 2017-09-03 23:20:22 +03:00
Timofey Solomko 59237d3790 Add RecursiveHuffmanTree enum
It will be used in HuffmanTree construction in BZip2 compression.
2017-09-03 23:18:49 +03:00
Timofey Solomko a70e557f38 Extract HuffmanLength array creation code into Deflate specific file 2017-09-03 22:46:00 +03:00
Timofey Solomko cebf0555e5 Make HuffmanLength Comparable and use this in their sorting in HuffmanTree 2017-09-03 20:04:44 +03:00
Timofey Solomko f96f446827 More elegant solution for zero code lengths problem 2017-09-03 19:59:46 +03:00
Timofey Solomko 69fa9a2646 Remove unused inits from HuffmanTrees 2017-09-03 14:18:23 +03:00
Timofey Solomko 49228a049f Fix HuffmanTree init crash when zero codeLength is encountered 2017-09-03 14:16:59 +03:00
Timofey Solomko a357837065 Use new HuffmanLengths in deflate compression huffmantree construction 2017-09-03 14:16:30 +03:00
Timofey Solomko 818e387028 Use new HuffmanLengths in dynamic deflate huffman tree construction 2017-09-03 14:16:10 +03:00
Timofey Solomko 4addd8098e Use new HuffmanLengths in construction of static huffman trees in deflate 2017-09-03 14:05:12 +03:00
Timofey Solomko fc63053899 Use new HuffmanLengths in BZip2 decompression (in huffman tables creation) 2017-09-03 14:01:50 +03:00
Timofey Solomko 5d19120b63 Add inits from new HuffmanLengths to HuffmanTrees 2017-09-03 14:00:26 +03:00
Timofey Solomko 97c767abf5 Add HuffmanLength class
This class represents (symbol, codeLength) pairs used in construction of HuffmanTrees. It also includes useful functions for generating HuffmanLengths from other structures.
2017-09-03 13:58:11 +03:00
Timofey Solomko 94545c06a9 Another batch of small changes to bzip2 2017-09-03 13:49:18 +03:00