Commit Graph
1108 Commits
Author SHA1 Message Date
Timofey Solomko 60008cc5c8 Moved initial values for properties of lzma classes to their declarations (where possible). 2016-12-23 19:16:28 +03:00
Timofey Solomko 5b942c31b7 pointerData is now stored as an instance property in all LZMA classes. 2016-12-23 19:09:50 +03:00
Timofey Solomko c95edcec2f lzmaDecode method rewritten as an instance method. 2016-12-23 19:02:29 +03:00
Timofey Solomko 53a80f8a79 Splitted code from LZMA into several files and added new class LZMADecoder. 2016-12-23 17:43:40 +03:00
Timofey Solomko 1aa51c18e0 Removed StreamHeader structure. 2016-12-23 15:13:18 +03:00
Timofey Solomko 8cc882619b Implemented parsing of index in xz and enable support of crc64 check. 2016-12-23 14:41:28 +03:00
Timofey Solomko c8a656a677 Added checks related to (un)compressed size of block. 2016-12-23 14:23:09 +03:00
Timofey Solomko eb78ca6af2 Added lzma2. 2016-12-22 23:52:18 +03:00
Timofey Solomko b232078e4e Completed block parsing in XZ. 2016-12-22 23:51:52 +03:00
Timofey Solomko 0e6f417d67 Main functions of LZMA restructured a bit to support addition of lzma2. 2016-12-22 23:51:12 +03:00
Timofey Solomko 6909d21c1c Added a couple of functions to DWP which may be used in the future. 2016-12-22 23:50:37 +03:00
Timofey Solomko 87c0f255d5 Added crc64. 2016-12-22 23:50:13 +03:00
Timofey Solomko f9641aec6d Fixed blockHeaderPadding and some cleanup. 2016-12-22 11:27:53 +03:00
Timofey Solomko 0d55c0f71f Hopefully fixed multiByteDecoder. 2016-12-22 11:18:14 +03:00
Timofey Solomko db000e2820 Added processIndex function and fixed misunderstanding about numberOfFilters. 2016-12-21 22:21:37 +03:00
Timofey Solomko 50d8369e8f Some progress on XZ. 2016-12-20 20:55:04 +03:00
Timofey Solomko c918f9156d Added footer and stream padding processing to xz archive. 2016-12-18 16:23:58 +03:00
Timofey Solomko fb45daaf67 Fixed typo in the name of the function. Added function to get bytes. 2016-12-18 16:23:37 +03:00
Timofey Solomko ebd50d61fe Added first things for xz archive support and tests for it. 2016-12-18 14:17:12 +03:00
Timofey Solomko 6589459e37 A small cleanup in GzipTests. 2016-12-18 14:16:36 +03:00
Timofey Solomko bc64ce44b1 Added function which calculates crc32. 2016-12-18 14:16:16 +03:00
Timofey Solomko b4766be618 Internal decompress function of LZMA now has its argument label omitted. 2016-12-18 14:15:51 +03:00
Timofey Solomko 0d52d55c5c XZ files are now in git lfs. 2016-12-18 14:15:14 +03:00
Timofey Solomko b0a728afff Removed answers for test9,10,11 because they are all the same as test8. 2016-12-18 12:29:03 +03:00
Timofey Solomko 2322194cd4 Added a lot of comments and docs. Added missing exceptions. PointerData argument labels are now omitted. 2016-12-17 21:48:24 +03:00
Timofey Solomko a3c8959471 bitTreeReverseDecode moved into BitTreeDecoder class. 2016-12-17 21:46:27 +03:00
Timofey Solomko bace1536fa Added two functions which print a lot of diagnostic information if certain build optins are enabled. 2016-12-17 20:28:28 +03:00
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