298 Commits

Author SHA1 Message Date
Timofey Solomko 93e64dbdcd Preparations for 2.2.0. 2017-02-18 22:36:08 +03:00
Timofey Solomko c7d982c19b Added a check for HuffmanTree.code(…) returning empty array. 2017-02-18 22:20:47 +03:00
Timofey Solomko 9b33b81353 Added a lot of docs strings. 2017-02-18 22:16:37 +03:00
Timofey Solomko 5e895dfec7 United write and writeReversed. 2017-02-18 19:44:27 +03:00
Timofey Solomko 7908c270a8 Added a new BitToByteWriter function for writing in opposite direction. 2017-02-18 19:28:57 +03:00
Timofey Solomko ec4a6d8a2a 2.2.0 testing release. 2017-02-12 10:58:27 +03:00
Timofey Solomko 19ef15119f Removed print statements. 2017-02-12 10:52:52 +03:00
Timofey Solomko 8f5f7f6b63 Fixed problem with not limiting max distance. 2017-02-11 20:48:17 +03:00
Timofey Solomko 9d1139f927 HuffmanTree now stores bitsCounts for symbols, redone code() function with the use of it. 2017-02-09 16:40:25 +03:00
Timofey Solomko 01dd368e0e BLDCode.description is no longer public. 2017-02-09 08:15:38 +03:00
Timofey Solomko f71668ad1c Removed repeating lines of code in BitToByteWriter.finish(). 2017-02-09 08:15:30 +03:00
Timofey Solomko ee11cd7722 Added performance testing for deflate compression. 2017-02-08 23:24:21 +03:00
Timofey Solomko 24576d892a Added function which allows creation of uncompressed deflate blocks, which in its turn allows us to enable test5 for deflation. 2017-02-08 19:41:02 +03:00
Timofey Solomko b1100a7594 Added new function to BitToByteWriter which writes a number with specified amount of bits. 2017-02-08 19:34:07 +03:00
Timofey Solomko 0db34d6820 Added dictionary-tech with three-byte hashes, which also allows to enable deflate6 test (better speed). 2017-02-08 19:26:11 +03:00
Timofey Solomko cafa8422da One more fix for distance encoding. 2017-02-07 23:00:10 +03:00
Timofey Solomko d1343e4c35 Fixed a problem with last distance symbol. 2017-02-07 22:45:23 +03:00
Timofey Solomko f7b75188fa lengthEncode code replaced with modified old version. 2017-02-07 22:36:04 +03:00
Timofey Solomko 8241d945bc Corrected errors with writing extra bits for HuffmanCodes. 2017-02-07 22:35:19 +03:00
Timofey Solomko eb81146e2a lengthEncode replaced with version which doesn’t perform any compression, test now compares before and after comp/decomp. 2017-02-05 20:47:42 +03:00
Timofey Solomko ae61d2ba91 Added appropriate public API for deflate compression. 2017-02-05 19:16:06 +03:00
Timofey Solomko 6e22a29aca crc32 now returns UInt32 value, added ability to chain crc32 calculations. 2017-02-05 13:46:13 +03:00
Timofey Solomko b2c7f64cfe Text fixes. 2017-02-04 15:07:38 +03:00
Timofey Solomko af0281d19f Completed static huffman encoding. 2017-02-04 00:00:15 +03:00
Timofey Solomko b57049cbb1 Added huffmanEncode function with first steps in huffman encoding (only literals for now). 2017-02-03 21:55:26 +03:00
Timofey Solomko b61d37e373 Added code function to huffman tree. 2017-02-03 21:54:21 +03:00
Timofey Solomko 58e2c5f3a5 Added function for finishing writing session to b2bwriter. 2017-02-03 21:53:59 +03:00
Timofey Solomko 1b6e913d11 Added new class for writing bits into bytes. 2017-02-03 20:43:39 +03:00
Timofey Solomko 06527bb7f9 Fixed some edge cases. 2017-02-03 20:32:08 +03:00
Timofey Solomko a4610c7aea Added max distance check. 2017-02-03 20:08:40 +03:00
Timofey Solomko 249adf87f3 Fixed distance value. More readable output in test. 2017-02-03 20:06:10 +03:00
Timofey Solomko a5cd5e51fb Redone lengthEncode with the use on new enum (which is CustomStringConvertible). 2017-02-03 19:49:06 +03:00
Timofey Solomko a5601037b6 Final attempt to fix several problems in current implementation of lengthEncode. 2017-02-02 23:45:06 +03:00
Timofey Solomko 642e07614e Small refactor in deflate. 2017-01-31 22:56:33 +03:00
Timofey Solomko f57b1d5682 Added test for lengthEncode and some additional remarks for testing purposes. 2017-01-31 22:14:12 +03:00
Timofey Solomko 3285181c6a Added new function to Deflate which provides length-distance encoding. 2017-01-31 22:13:37 +03:00
Timofey Solomko 76308ecf67 Swiftlinted. 2017-01-30 18:33:52 +03:00
Timofey Solomko 0d42eb582c Another round of refactoring. 2017-01-30 18:28:25 +03:00
Timofey Solomko 8f6fa52031 Added code for processing individual entries. 2017-01-30 18:24:50 +03:00
Timofey Solomko 44526b5a15 More refactoring. 2017-01-30 18:15:43 +03:00
Timofey Solomko e9c4aecae3 Small refactor of zip code. 2017-01-29 15:37:32 +03:00
Timofey Solomko 20acd58c7c Preparations for 2.1.0. 2017-01-29 12:04:39 +03:00
Timofey Solomko a3ec4b781c Added docs for ZipContainer. 2017-01-28 21:15:21 +03:00
Timofey Solomko 45ea258a24 xz to XZ. 2017-01-28 21:15:10 +03:00
Timofey Solomko 623999ef58 Small docs fixes. 2017-01-28 21:02:56 +03:00
Timofey Solomko eea1805929 Changed return type. 2017-01-16 23:01:10 +03:00
Timofey Solomko 3f9fdbf998 2.1.0-test2 release. 2017-01-16 22:53:20 +03:00
Timofey Solomko a4b8142edb Removed unused case. 2017-01-16 22:50:04 +03:00
Timofey Solomko 4370a029e3 Added support for data descriptor. 2017-01-16 22:49:31 +03:00
Timofey Solomko d32ea991f0 Fixed two warnings. 2017-01-15 14:53:34 +03:00