1539 Commits
Author SHA1 Message Date
Timofey Solomko e9ed009ec3 Added literal decoding. 2016-12-16 00:35:40 +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 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 38891e06fa Replaced bit() function with self-contained version of it. 2016-12-14 21:05:40 +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 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 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 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 b9fb8079b9 Removed HuffmanLength. 2016-12-08 08:26:14 +03:00
Timofey Solomko 95c5221f49 HuffmanLength is no longer used. 2016-12-08 08:25:00 +03:00
Timofey Solomko 04f541b7be Preparations for 1.2.0. 2016-12-05 19:51:00 +03:00
Timofey Solomko 4db6e7ec44 Removed remains of huffmantable. 2016-12-05 19:47:25 +03:00
Timofey Solomko 52cc370607 Swiftlinted. 2016-12-05 19:46:09 +03:00
Timofey Solomko c4f54e8198 United two cycles through lengths array. Thus, there is no need for symbol property in HuffmanLength. Also added dots to the end of comments. 2016-12-04 22:25:19 +03:00
Timofey Solomko f325af4baf Removed rewind function. 2016-12-04 20:25:11 +03:00
Timofey Solomko 6215d68aa5 tree property of HuffmanTree now stores only codes. findNextSymbol now returns Int instead of HuffmanLengths. 2016-12-04 19:58:41 +03:00
Timofey Solomko 875a015043 HuffmanTable renamed to HuffmanTree. Its properties are now private. 2016-12-04 19:49:53 +03:00
Timofey Solomko 445eb2ec61 Removed lengths property of HuffmanTable. 2016-12-04 19:42:34 +03:00
Timofey Solomko b9b3df58e7 Removed HuffmanLength.symbol. Renamed HuffmanLength.reversedSymbol into symbol. 2016-12-04 19:38:43 +03:00
Timofey Solomko 0addf5cfb7 reversedTree renamed to tree. 2016-12-04 19:32:19 +03:00
Timofey Solomko 4405ca8a33 Removed unused tree structure in HuffmanTable. 2016-12-04 19:31:16 +03:00
Timofey Solomko e93050260d Additionally simplified usage of findNextSymbol. 2016-12-04 19:28:57 +03:00
Timofey Solomko 91016942f0 Made changes so bzip2 now also works. 2016-12-04 19:25:28 +03:00
Timofey Solomko 870a4ddecf Simplified findNextSymbol usage and added a new way of finding a symbol (with tree) for .reversed bitOrders. 2016-12-04 15:55:34 +03:00
Timofey Solomko cbd22be1e4 Finally, found a way to create correct huffman trees. Also removed remains of last attempts. 2016-12-04 15:24:09 +03:00
Timofey Solomko ce2039b4c1 Another attempt of tree creation. Note that first leafs in a tree a nils. 2016-12-04 13:29:36 +03:00
Timofey Solomko 86dffb1f0d Implemented findnextsymbol with tree structure. It seems to not work properly. 2016-12-03 12:08:14 +03:00
Timofey Solomko d46a0f5e67 Added creation of tree-like structure for Huffman tables. 2016-12-02 22:01:49 +03:00
Timofey Solomko 32721b1413 The real job is now done only with data with pointer objects so there is no need for startPoint property of serviceInfos. 2016-11-26 15:40:40 +03:00
Timofey Solomko 38caec5ddb Added method which gets one byte from data with pointer. 2016-11-26 15:39:20 +03:00
Timofey Solomko f35565afec Preparations for 1.1.2. 2016-11-22 23:05:58 +03:00
Timofey Solomko 520b563768 Fixed mtime problem in gzip tests. 2016-11-21 21:44:09 +03:00
Timofey Solomko 234c58ace5 Added new way to read bytes and used it in deflate uncompressed blocks. 2016-11-21 20:17:27 +03:00
Timofey Solomko 6588ce2fa9 ServiceInfos of Gzip and Zlib are now Equatable. 2016-11-21 19:23:27 +03:00