Commit Graph

  • e8c2bf992d Added check of header’s crc. Timofey Solomko 2016-12-24 20:33:03 +03:00
  • 3c4ca8f81c Added check of crc and isize of uncompressed data in Gzip. Timofey Solomko 2016-12-24 20:14:07 +03:00
  • 3939b0396d GZIP: Renamed NonZeroReservedFlags to WrongFlags, added WrongCRC error, some docs updates. Timofey Solomko 2016-12-24 20:02:40 +03:00
  • dfe83f8297 Removed argument lable pointerData from internal deflate-related methods. Timofey Solomko 2016-12-24 20:00:43 +03:00
  • 5c288deb9f Readded missing test files. Timofey Solomko 2016-12-24 19:30:53 +03:00
  • 9be265aeb4 Updated test results. Timofey Solomko 2016-12-24 18:43:05 +03:00
  • 04106bfa8a Some changes to make deflate/bzip2 faster. Timofey Solomko 2016-12-24 18:42:56 +03:00
  • c226b4905b Added new test results. filter_test.py now supports xz test results. Timofey Solomko 2016-12-24 15:39:18 +03:00
  • f5270f9674 Fixed build error when range decoder is reset. Timofey Solomko 2016-12-24 15:10:42 +03:00
  • 836843a1cc One more fix for multiByteDecode… Timofey Solomko 2016-12-24 15:10:18 +03:00
  • c64f739cb2 RangeDecoder is now reset each time. Timofey Solomko 2016-12-24 15:00:18 +03:00
  • e8d103776b Fixed padding processing for blocks and index once again. Timofey Solomko 2016-12-24 14:04:18 +03:00
  • f1f2240867 Small change to crc calculations. Timofey Solomko 2016-12-24 14:03:42 +03:00
  • e4181a76a9 Swiftlinted. Timofey Solomko 2016-12-24 12:34:23 +03:00
  • e520458a11 Fixed problem caused by not specifying uncompressed size before lzma decoding. Timofey Solomko 2016-12-23 23:37:09 +03:00
  • b61a5a466d Moved multiByteDecode into DWP. Hopefully, now it works properly (I’ve also made some changes to it). Timofey Solomko 2016-12-23 23:36:35 +03:00
  • bd411906be Small cleanup in lzmadecoder. Timofey Solomko 2016-12-23 21:48:07 +03:00
  • c57f7f3a5d Fixed error due to unitialized lc,lp,pb befor resetting state. Timofey Solomko 2016-12-23 21:47:55 +03:00
  • c0fefcc77b Fixed reset bits calculation. Timofey Solomko 2016-12-23 21:47:19 +03:00
  • 35052bdc28 Added check of backwardSize, disabled stream padding. Timofey Solomko 2016-12-23 21:33:10 +03:00
  • 1468914491 Fixed problems with calculation of unpadded size of a block. Timofey Solomko 2016-12-23 21:20:33 +03:00
  • 4d35231c32 Dictionary size is now passed around and fixed the problem with big-endian integers. Timofey Solomko 2016-12-23 21:20:03 +03:00
  • a5158e27f2 Fixed crash in crc64. Timofey Solomko 2016-12-23 21:19:18 +03:00
  • d41bab2136 DWP is now final. Timofey Solomko 2016-12-23 20:40:48 +03:00
  • d00944bb94 Small docs changes in XZ. Timofey Solomko 2016-12-23 20:40:38 +03:00
  • 39050dd7d0 Probably completed lzma2. Timofey Solomko 2016-12-23 20:40:30 +03:00
  • 4bb92c00d5 A new attempt has been made to make an LZMADecoder initializer which can support both LZMA and LZMA2. Also lzma Constants are no longer a substruct. Timofey Solomko 2016-12-23 20:09:46 +03:00
  • ec8f15965a Added new convenience function for OutWindow. Timofey Solomko 2016-12-23 20:07:42 +03:00
  • d3650edbeb Finished LZMA/LZMADecoder. Timofey Solomko 2016-12-23 19:52:08 +03:00
  • 60008cc5c8 Moved initial values for properties of lzma classes to their declarations (where possible). Timofey Solomko 2016-12-23 19:16:28 +03:00
  • 5b942c31b7 pointerData is now stored as an instance property in all LZMA classes. Timofey Solomko 2016-12-23 19:09:50 +03:00
  • c95edcec2f lzmaDecode method rewritten as an instance method. Timofey Solomko 2016-12-23 19:02:29 +03:00
  • 53a80f8a79 Splitted code from LZMA into several files and added new class LZMADecoder. Timofey Solomko 2016-12-23 17:43:40 +03:00
  • 1aa51c18e0 Removed StreamHeader structure. Timofey Solomko 2016-12-23 15:13:18 +03:00
  • 8cc882619b Implemented parsing of index in xz and enable support of crc64 check. Timofey Solomko 2016-12-23 14:41:28 +03:00
  • c8a656a677 Added checks related to (un)compressed size of block. Timofey Solomko 2016-12-23 14:23:09 +03:00
  • eb78ca6af2 Added lzma2. Timofey Solomko 2016-12-22 23:52:18 +03:00
  • b232078e4e Completed block parsing in XZ. Timofey Solomko 2016-12-22 23:51:52 +03:00
  • 0e6f417d67 Main functions of LZMA restructured a bit to support addition of lzma2. Timofey Solomko 2016-12-22 23:51:12 +03:00
  • 6909d21c1c Added a couple of functions to DWP which may be used in the future. Timofey Solomko 2016-12-22 23:50:37 +03:00
  • 87c0f255d5 Added crc64. Timofey Solomko 2016-12-22 23:50:13 +03:00
  • f9641aec6d Fixed blockHeaderPadding and some cleanup. Timofey Solomko 2016-12-22 11:27:53 +03:00
  • 0d55c0f71f Hopefully fixed multiByteDecoder. Timofey Solomko 2016-12-22 11:18:14 +03:00
  • db000e2820 Added processIndex function and fixed misunderstanding about numberOfFilters. Timofey Solomko 2016-12-21 22:21:37 +03:00
  • 50d8369e8f Some progress on XZ. Timofey Solomko 2016-12-20 20:55:04 +03:00
  • c918f9156d Added footer and stream padding processing to xz archive. Timofey Solomko 2016-12-18 16:23:58 +03:00
  • fb45daaf67 Fixed typo in the name of the function. Added function to get bytes. Timofey Solomko 2016-12-18 16:23:37 +03:00
  • ebd50d61fe Added first things for xz archive support and tests for it. Timofey Solomko 2016-12-18 14:17:12 +03:00
  • 6589459e37 A small cleanup in GzipTests. Timofey Solomko 2016-12-18 14:16:36 +03:00
  • bc64ce44b1 Added function which calculates crc32. Timofey Solomko 2016-12-18 14:16:16 +03:00
  • b4766be618 Internal decompress function of LZMA now has its argument label omitted. Timofey Solomko 2016-12-18 14:15:51 +03:00
  • 0d52d55c5c XZ files are now in git lfs. Timofey Solomko 2016-12-18 14:15:14 +03:00
  • b0a728afff Removed answers for test9,10,11 because they are all the same as test8. Timofey Solomko 2016-12-18 12:29:03 +03:00
  • 2322194cd4 Added a lot of comments and docs. Added missing exceptions. PointerData argument labels are now omitted. Timofey Solomko 2016-12-17 21:48:24 +03:00
  • a3c8959471 bitTreeReverseDecode moved into BitTreeDecoder class. Timofey Solomko 2016-12-17 21:46:27 +03:00
  • bace1536fa Added two functions which print a lot of diagnostic information if certain build optins are enabled. Timofey Solomko 2016-12-17 20:28:28 +03:00
  • 97e8dc27d3 Added several additional tests (same file but different settings). Timofey Solomko 2016-12-17 20:18:56 +03:00
  • da1e34aca4 Reenabled lzmaTest, because it can be completed now. Timofey Solomko 2016-12-17 20:12:35 +03:00
  • 22fe02b56a Fixed problem when arrays with coders contained and pointed onto only one coder. Also fixed calculations in and around decodeDirectBits. Timofey Solomko 2016-12-17 20:12:04 +03:00
  • d4f3224129 Fixed problem with overreducing unpackSize after copyMatch. Timofey Solomko 2016-12-17 15:21:56 +03:00
  • 8a62693db6 Added a lot of breaks where throws should be. Timofey Solomko 2016-12-17 15:20:46 +03:00
  • 37a9b0437e Fixed bitTreeReverseDecode first argument problem. Timofey Solomko 2016-12-17 14:07:03 +03:00
  • c7acc7ec93 Fixed problem with decode not updating the probability. Timofey Solomko 2016-12-17 13:43:05 +03:00
  • 843dadf08c Added some comments and corrected decode literal part of lzma main cycle. Timofey Solomko 2016-12-16 22:19:18 +03:00
  • 85d2c0f7a4 Replaced pow() with bit shift operations. Timofey Solomko 2016-12-16 21:33:10 +03:00
  • 347d3863df Disabled lzma test. Timofey Solomko 2016-12-16 21:32:51 +03:00
  • b970fb142c decodeLiteral and decodeDistance are no longer separate functions. Timofey Solomko 2016-12-16 20:46:28 +03:00
  • 1df18966e5 rangeDecoder is now passed as inout parameter. Moved adding data to out array to OutWindow.put(byte:). Timofey Solomko 2016-12-16 20:42:01 +03:00
  • 0664e5e481 Finished first implementation draft. Timofey Solomko 2016-12-16 20:01:21 +03:00
  • 7ac6cc2447 Updated xcode version in travis. Timofey Solomko 2016-12-16 19:01:16 +03:00
  • 1c9335f451 Updated .gitignore. Timofey Solomko 2016-12-16 18:57:21 +03:00
  • e9ed009ec3 Added literal decoding. Timofey Solomko 2016-12-16 00:35:40 +03:00
  • 87e6fd3104 Renamed lzma test to ‘test8’ and added answer for it. Timofey Solomko 2016-12-16 00:35:23 +03:00
  • 50feb6eca4 Finished decoder initialization. Timofey Solomko 2016-12-16 00:06:47 +03:00
  • 815d57158b New intFromAlingedBytes function is now used in LZMA. Timofey Solomko 2016-12-15 23:37:56 +03:00
  • 59cdfa3a19 out array now has proper doc string. Timofey Solomko 2016-12-15 23:37:36 +03:00
  • e881be867e Added intFromAlingedBytes. Timofey Solomko 2016-12-15 23:37:11 +03:00
  • 443dcbe076 Rephrased docs for DeflateError.UnknownBlockType. Timofey Solomko 2016-12-15 23:25:08 +03:00
  • b342918566 Renamed decodeHuffmanBlock to decode. Timofey Solomko 2016-12-15 23:24:36 +03:00
  • 9ba04b01d0 Now LZMATest doesn’t fail. Timofey Solomko 2016-12-15 19:38:28 +03:00
  • 569085f9c8 Added a lot of constants and initializations and pointerData now passed as inout parameter. Timofey Solomko 2016-12-15 19:38:17 +03:00
  • 06e0ab364b Added a couple of auxiliary classes. Timofey Solomko 2016-12-15 19:22:17 +03:00
  • 34742c5bc3 First steps in LZMA (also added some basic test). Timofey Solomko 2016-12-15 17:45:38 +03:00
  • 008c3b557d Added doc for BZip2Error.WrongMagic. Timofey Solomko 2016-12-15 17:44:39 +03:00
  • 767bc4094c Merge branch 'develop' v1.2.2 Timofey Solomko 2016-12-14 21:55:31 +03:00
  • 6c0800b311 Preparations for 1.2.2. Timofey Solomko 2016-12-14 21:54:52 +03:00
  • 88bbbab9f2 Preparations for 1.2.2. Timofey Solomko 2016-12-14 21:54:52 +03:00
  • fa0931e135 Swiftlinted. Timofey Solomko 2016-12-14 21:53:38 +03:00
  • 0f89d01eb8 Swiftlinted. Timofey Solomko 2016-12-14 21:53:38 +03:00
  • a4cb766afd Added test results for 1.2.2. Timofey Solomko 2016-12-14 21:09:31 +03:00
  • a0f3c6a5a4 Added test results for 1.2.2. Timofey Solomko 2016-12-14 21:09:31 +03:00
  • 38891e06fa Replaced bit() function with self-contained version of it. Timofey Solomko 2016-12-14 21:05:40 +03:00
  • 5250d7defb Replaced bit() function with self-contained version of it. Timofey Solomko 2016-12-14 21:05:40 +03:00
  • 21f80a0474 Updated readme with additional discussions on performance issues. Timofey Solomko 2016-12-14 21:05:07 +03:00
  • e061c5ff88 Updated readme with additional discussions on performance issues. Timofey Solomko 2016-12-14 21:05:07 +03:00
  • f55ce6b669 Updated project settings and removed singing for ios target. Timofey Solomko 2016-12-14 20:27:21 +03:00
  • b66f608967 Updated project settings and removed singing for ios target. Timofey Solomko 2016-12-14 20:27:21 +03:00
  • 66a4632dd0 findNextSymbol no longer returns optional. Timofey Solomko 2016-12-11 14:00:06 +03:00
  • 303a635020 findNextSymbol no longer returns optional. Timofey Solomko 2016-12-11 14:00:06 +03:00
  • 4b26aa5c1f Removed optionals from huffmantree. Timofey Solomko 2016-12-11 13:33:46 +03:00