Commit Graph
224 Commits
Author SHA1 Message Date
Timofey Solomko 97e8dc27d3 Added several additional tests (same file but different settings). 2016-12-17 20:18:56 +03:00
Timofey Solomko da1e34aca4 Reenabled lzmaTest, because it can be completed now. 2016-12-17 20:12:35 +03:00
Timofey Solomko 22fe02b56a Fixed problem when arrays with coders contained and pointed onto only one coder. Also fixed calculations in and around decodeDirectBits. 2016-12-17 20:12:04 +03:00
Timofey Solomko d4f3224129 Fixed problem with overreducing unpackSize after copyMatch. 2016-12-17 15:21:56 +03:00
Timofey Solomko 8a62693db6 Added a lot of breaks where throws should be. 2016-12-17 15:21:20 +03:00
Timofey Solomko 37a9b0437e Fixed bitTreeReverseDecode first argument problem. 2016-12-17 14:07:03 +03:00
Timofey Solomko c7acc7ec93 Fixed problem with decode not updating the probability. 2016-12-17 13:43:05 +03:00
Timofey Solomko 843dadf08c Added some comments and corrected decode literal part of lzma main cycle. 2016-12-16 22:19:18 +03:00
Timofey Solomko 85d2c0f7a4 Replaced pow() with bit shift operations. 2016-12-16 21:33:10 +03:00
Timofey Solomko 347d3863df Disabled lzma test. 2016-12-16 21:32:51 +03:00
Timofey Solomko b970fb142c decodeLiteral and decodeDistance are no longer separate functions. 2016-12-16 20:46:28 +03:00
Timofey Solomko 1df18966e5 rangeDecoder is now passed as inout parameter. Moved adding data to out array to OutWindow.put(byte:). 2016-12-16 20:42:01 +03:00
Timofey Solomko 0664e5e481 Finished first implementation draft. 2016-12-16 20:01:21 +03:00
Timofey Solomko 7ac6cc2447 Updated xcode version in travis. 2016-12-16 19:01:16 +03:00
Timofey Solomko 1c9335f451 Updated .gitignore. 2016-12-16 18:57:21 +03:00
Timofey Solomko e9ed009ec3 Added literal decoding. 2016-12-16 00:35:40 +03:00
Timofey Solomko 87e6fd3104 Renamed lzma test to ‘test8’ and added answer for it. 2016-12-16 00:35:23 +03:00
Timofey Solomko 50feb6eca4 Finished decoder initialization. 2016-12-16 00:06:47 +03:00
Timofey Solomko 815d57158b New intFromAlingedBytes function is now used in LZMA. 2016-12-15 23:37:56 +03:00
Timofey Solomko 59cdfa3a19 out array now has proper doc string. 2016-12-15 23:37:36 +03:00
Timofey Solomko e881be867e Added intFromAlingedBytes. 2016-12-15 23:37:11 +03:00
Timofey Solomko 443dcbe076 Rephrased docs for DeflateError.UnknownBlockType. 2016-12-15 23:25:08 +03:00
Timofey Solomko b342918566 Renamed decodeHuffmanBlock to decode. 2016-12-15 23:24:36 +03:00
Timofey Solomko 9ba04b01d0 Now LZMATest doesn’t fail. 2016-12-15 19:38:28 +03:00
Timofey Solomko 569085f9c8 Added a lot of constants and initializations and pointerData now passed as inout parameter. 2016-12-15 19:38:17 +03:00
Timofey Solomko 06e0ab364b Added a couple of auxiliary classes. 2016-12-15 19:22:17 +03:00
Timofey Solomko 34742c5bc3 First steps in LZMA (also added some basic test). 2016-12-15 17:45:38 +03:00
Timofey Solomko 008c3b557d Added doc for BZip2Error.WrongMagic. 2016-12-15 17:44:39 +03:00
Timofey Solomko 6c0800b311 Preparations for 1.2.2. 2016-12-14 21:54:52 +03:00
Timofey Solomko fa0931e135 Swiftlinted. 2016-12-14 21:53:38 +03:00
Timofey Solomko a4cb766afd Added test results for 1.2.2. 2016-12-14 21:09:31 +03:00
Timofey Solomko 38891e06fa Replaced bit() function with self-contained version of it. 2016-12-14 21:05:40 +03:00
Timofey Solomko 21f80a0474 Updated readme with additional discussions on performance issues. 2016-12-14 21:05:07 +03:00
Timofey Solomko f55ce6b669 Updated project settings and removed singing for ios target. 2016-12-14 20:27:21 +03:00
Timofey Solomko 66a4632dd0 findNextSymbol no longer returns optional. 2016-12-11 14:00:06 +03:00
Timofey Solomko 4b26aa5c1f Removed optionals from huffmantree. 2016-12-11 13:33:46 +03:00
Timofey Solomko 48922b7154 Preparations for 1.2.1. 2016-12-10 18:47:05 +03:00
Timofey Solomko b16cd78977 Updated readme. 2016-12-10 18:43:00 +03:00
Timofey Solomko 29eb13ada4 Updated test results. 2016-12-10 18:40:02 +03:00
Timofey Solomko 3bff620572 Removed unused and excessive functions from Extensions. Corrected Zlib because it used one of them. 2016-12-10 15:59:24 +03:00
Timofey Solomko 5ec3cce5d2 Removed unused import in DWP. 2016-12-10 15:58:17 +03:00
Timofey Solomko 106fd1e645 Made some properties in DWP private. 2016-12-09 20:33:29 +03:00
Timofey Solomko 8e189f1877 Updated test results. 2016-12-09 11:29:47 +03:00
Timofey Solomko effb1e8691 Uncompressed block now added to out a little bit more efficient. 2016-12-09 11:29:36 +03:00
Timofey Solomko c02e00dd64 Fixed gzip tests incompatibility. 2016-12-09 09:21:42 +03:00
Timofey Solomko 5828570bed Swiftlinted. 2016-12-09 01:12:22 +03:00
Timofey Solomko 97633f1069 Added results of performance testing. 2016-12-09 01:12:17 +03:00
Timofey Solomko 1f95237274 Adopted removal of alignedBytes() in other code. 2016-12-09 01:08:49 +03:00
Timofey Solomko c009ef12a8 Rewritten DataWithPointer with the use of array of bytes. Removed alignedBytes(count:) because it was significantly slower this way. 2016-12-09 01:07:52 +03:00
Timofey Solomko 7f49f10b1c Reorganized tests so there is now less duplicate code. 2016-12-09 00:05:45 +03:00