Commit Graph
1108 Commits
Author SHA1 Message Date
Timofey Solomko 7bab0020ff Fixed a problem with repeated strings in data. 2016-10-29 17:46:46 +03:00
Timofey Solomko 5f9c0cefcc findNextSymbol now returns shift and this calculation is now correct and used everywhere. 2016-10-28 21:04:16 +03:00
Timofey Solomko 6d435e7a5e findNextSymbol now returns shift and this calculation is now correct and used everywhere. 2016-10-28 21:04:16 +03:00
Timofey Solomko 712f7ace93 Apparently, I've missed extraDistanceBits array and was reading a value from wrong array. This was fixed. 2016-10-28 21:02:31 +03:00
Timofey Solomko c7a66d58ea Apparently, I've missed extraDistanceBits array and was reading a value from wrong array. This was fixed. 2016-10-28 21:02:31 +03:00
Timofey Solomko a0a5c99a11 Added automatic check for answer in second test. 2016-10-28 21:01:18 +03:00
Timofey Solomko 8389ac4673 Added automatic check for answer in second test. 2016-10-28 21:01:18 +03:00
Timofey Solomko 0d01ef604a Added second test and renamed first one. 2016-10-28 20:00:45 +03:00
Timofey Solomko 8187fd1fd9 Added second test and renamed first one. 2016-10-28 20:00:45 +03:00
Timofey Solomko 41052737e4 Completed implementation of Deflate. 2016-10-28 20:00:34 +03:00
Timofey Solomko cdb3384740 Completed implementation of Deflate. 2016-10-28 20:00:34 +03:00
Timofey Solomko e93ec4058b Implemented dynamic coding. 2016-10-27 19:35:48 +03:00
Timofey Solomko 4fff569544 Implemented dynamic coding. 2016-10-27 19:35:48 +03:00
Timofey Solomko 9d782bb658 Added new extension for getting an array of bits from ambigious places in Data objects; convert array to number functions moved to Extensions file. 2016-10-27 14:47:27 +03:00
Timofey Solomko 3fed92ffe6 Added new extension for getting an array of bits from ambigious places in Data objects; convert array to number functions moved to Extensions file. 2016-10-27 14:47:27 +03:00
Timofey Solomko bca59021a5 Added extensions, findNextSymbol; HuffmanLength moved to a separate file. 2016-10-26 21:03:19 +03:00
Timofey Solomko 9f9ad78eab Added extensions, findNextSymbol; HuffmanLength moved to a separate file. 2016-10-26 21:03:19 +03:00
Timofey Solomko 380ee3654b Implemented OrderedHuffmanTable and combined all auxiliary functions into HuffmanTable's initializer. 2016-10-26 11:33:07 +03:00
Timofey Solomko 013350ec86 Implemented OrderedHuffmanTable and combined all auxiliary functions into HuffmanTable's initializer. 2016-10-26 11:33:07 +03:00
Timofey Solomko 10fc083d1d Rearrangement of code (also symbols are populated and maximums are computed at initialization). 2016-10-26 01:00:00 +03:00
Timofey Solomko 851d2d7e0d Rearrangement of code (also symbols are populated and maximums are computed at initialization). 2016-10-26 01:00:00 +03:00
Timofey Solomko 6032c78351 Implemented minMaxBits for HuffmanTable. 2016-10-26 00:49:55 +03:00
Timofey Solomko f807768e52 Implemented minMaxBits for HuffmanTable. 2016-10-26 00:49:55 +03:00
Timofey Solomko 15dbb1fb60 Data type actually has built-in subscripts, so home-made subscripts were replaced by them. 2016-10-25 23:25:35 +03:00
Timofey Solomko c06d34fb23 Data type actually has built-in subscripts, so home-made subscripts were replaced by them. 2016-10-25 23:25:35 +03:00
Timofey Solomko 33f8466dd7 Cleanuped code. 2016-10-25 23:07:13 +03:00
Timofey Solomko 78c53e6d06 Cleanuped code. 2016-10-25 23:07:13 +03:00
Timofey Solomko b000b7952b Added a lot of comments and rewrote some bad code. 2016-10-24 23:22:36 +03:00
Timofey Solomko 47e42c4334 Added a lot of comments and rewrote some bad code. 2016-10-24 23:22:36 +03:00
Timofey Solomko b7cc028de7 Added reversedSymbol for HuffmanLength and code to populate symbols of HuffmanTable. 2016-10-24 21:55:05 +03:00
Timofey Solomko ad37c5a918 Added reversedSymbol for HuffmanLength and code to populate symbols of HuffmanTable. 2016-10-24 21:55:05 +03:00
Timofey Solomko 886fd09b71 Added code for processing static Huffman block. 2016-10-24 21:31:12 +03:00
Timofey Solomko cc26d2ff4c Added code for processing static Huffman block. 2016-10-24 21:31:12 +03:00
Timofey Solomko 720cb6d5d8 Fixed problem with recognizing block type. 2016-10-24 21:30:51 +03:00
Timofey Solomko 0a4b6a3474 Fixed problem with recognizing block type. 2016-10-24 21:30:51 +03:00
Timofey Solomko 078a3e984a Added HuffmanLength and initializer from bootstrap for HuffmanTable. 2016-10-24 21:29:06 +03:00
Timofey Solomko a1745142eb Added HuffmanLength and initializer from bootstrap for HuffmanTable. 2016-10-24 21:29:06 +03:00
Timofey Solomko 6302e3627b Actually, if you read specifications carefully you will find out that the remaining bits should be dropped. 2016-10-24 20:31:18 +03:00
Timofey Solomko a0500b84c3 Actually, if you read specifications carefully you will find out that the remaining bits should be dropped. 2016-10-24 20:31:18 +03:00
Timofey Solomko aff828f4cb Now while-loop actually breaks. 2016-10-24 20:23:50 +03:00
Timofey Solomko 987a3608c2 Now while-loop actually breaks. 2016-10-24 20:23:50 +03:00
Timofey Solomko ed5cf0ebe1 Moved UInt8 and Data extensions to a combined file. Added function to "combine" two bytes into one. 2016-10-24 20:23:26 +03:00
Timofey Solomko 1c7ff6150b Moved UInt8 and Data extensions to a combined file. Added function to "combine" two bytes into one. 2016-10-24 20:23:26 +03:00
Timofey Solomko 1a99f774f7 Added code to process uncompressed blocks. 2016-10-24 20:21:38 +03:00
Timofey Solomko 1bc2c46936 Added code to process uncompressed blocks. 2016-10-24 20:21:38 +03:00
Timofey Solomko 58c14c1870 Added some extensions to Data to allow getting misaligned bytes. 2016-10-24 20:20:48 +03:00
Timofey Solomko 0122811b3f Added some extensions to Data to allow getting misaligned bytes. 2016-10-24 20:20:48 +03:00
Timofey Solomko 81d41bef50 Some progress was made on reading information from archive. 2016-10-24 00:22:58 +03:00
Timofey Solomko 24a1ae2ac6 Some progress was made on reading information from archive. 2016-10-24 00:22:58 +03:00
Timofey Solomko dcba4d777e Added useful UInt8 extensions. 2016-10-24 00:21:08 +03:00