335 Commits

Author SHA1 Message Date
Timofey Solomko 04001dcaa1 Preparations for 2.4.2. 2017-05-07 20:41:52 +03:00
Timofey Solomko 98d107caaf fileName property of ZipEntry now actually returns file name. 2017-05-07 20:39:04 +03:00
Timofey Solomko d883c37bd1 Preparations for 2.4.1. 2017-05-06 18:48:43 +03:00
Timofey Solomko 3980bee603 Preparations for 2.4.0. 2017-04-22 21:25:24 +03:00
Timofey Solomko 62042d870a Swiftlinted. 2017-04-22 21:22:31 +03:00
Timofey Solomko b2bf2764f3 New crc32(Data) and adler32(Data) functions are now used. 2017-04-22 21:22:06 +03:00
Timofey Solomko 3d0c52c538 Added crc32() and adler32() overloads with Data object as argument. 2017-04-22 21:21:45 +03:00
Timofey Solomko cc114884b6 Added zlib archiving. 2017-04-22 20:58:41 +03:00
Timofey Solomko 7ffc6fe499 DataWithPointer no longer converts input Data object into byte array. 2017-04-16 12:24:40 +03:00
Timofey Solomko f33c541212 Preparations for 2.3.0. 2017-04-15 22:13:47 +03:00
Timofey Solomko 4c642f4027 Added docs for achive method. 2017-04-15 21:21:20 +03:00
Timofey Solomko d1bde66cea Swiftlinted. 2017-04-15 21:13:10 +03:00
Timofey Solomko f6625488b2 Added archive function to gzip. 2017-04-15 21:11:31 +03:00
Timofey Solomko 645d98f368 Removed wrong bitWriter finishing which was adding extra wrong byte to output. 2017-04-15 21:11:09 +03:00
Timofey Solomko 55f4fadf31 HTNode.branch now uses Set instead of Array. 2017-03-05 22:29:19 +03:00
Timofey Solomko 85a4c2e733 HuffmanTree now writes to BitToByteWriter during coding. 2017-03-05 22:17:30 +03:00
Timofey Solomko b99d8bf55a Merge branch 'hotfix-2.2.2' into develop 2017-02-26 15:03:18 +03:00
Timofey Solomko 13965d002f Preparations for 2.2.2. 2017-02-26 15:00:51 +03:00
Timofey Solomko 1ab2748a00 Fixed zero-length problem for big uncompressed blocks. 2017-02-26 14:51:20 +03:00
Timofey Solomko 6a603168eb Old tree finally replaced with the new one. 2017-02-25 15:34:00 +03:00
Timofey Solomko 22a1db9d6d code(…) now uses new tree. 2017-02-25 15:31:49 +03:00
Timofey Solomko b0904702c5 Added populating newTree with branch nodes. 2017-02-25 15:30:59 +03:00
Timofey Solomko aee09c93ec findNextSymbol now uses new tree array. 2017-02-25 15:04:52 +03:00
Timofey Solomko c03f1943fb Added new struct for HuffmanTree nodes and a new array property with these nodes. 2017-02-25 15:04:30 +03:00
Timofey Solomko 7a99a7972f Added option to HuffmanTree which enables/disables coding. 2017-02-25 14:58:12 +03:00
Timofey Solomko a8645ff296 Swiftlinted. 2017-02-25 14:55:55 +03:00
Timofey Solomko 861b51ba56 Moved constants from HuffmanTree to Deflate. 2017-02-24 22:49:28 +03:00
Timofey Solomko 636b75dce9 Added new structure (LengthDistance) to reduce code repetition. 2017-02-24 22:47:28 +03:00
Timofey Solomko aaf1f20da2 Preparations for 2.2.1. 2017-02-24 20:01:43 +03:00
Timofey Solomko 743eead3ea Added fallback to uncompressed block in cases if it will be more size-efficient (according to size calculations). 2017-02-24 19:55:55 +03:00
Timofey Solomko 7b89374b12 Another fix for stats. 2017-02-24 19:51:26 +03:00
Timofey Solomko 84b7e9c4da Fixed some stats calculation problem. 2017-02-24 19:48:41 +03:00
Timofey Solomko 25d7459105 Added calculations of estimated sizes. 2017-02-24 19:48:24 +03:00
Timofey Solomko 394166443c Added stats counting. 2017-02-24 18:41:44 +03:00
Timofey Solomko e866ad773e CRC tables replaced with raw values. 2017-02-19 21:42:41 +03:00
Timofey Solomko 5600734d6e uint32FromAlignedBytes is now used instead of uint64 counterpart where possible. 2017-02-19 11:45:01 +03:00
Timofey Solomko a76728cc00 Added new uint32FromAlignedBytes function to DWP and two preconditions. 2017-02-19 11:44:31 +03:00
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