18 Commits
Author SHA1 Message Date
Timofey Solomko 9d1139f927 HuffmanTree now stores bitsCounts for symbols, redone code() function with the use of it. 2017-02-09 16:40:25 +03:00
Timofey Solomko af0281d19f Completed static huffman encoding. 2017-02-04 00:00:15 +03:00
Timofey Solomko b61d37e373 Added code function to huffman tree. 2017-02-03 21:54:21 +03:00
Timofey Solomko d877adf962 Updated copyright year. 2017-01-05 23:09:53 +03:00
Timofey Solomko 0ed89edf3d Small cleanup. 2016-12-25 22:30:52 +03:00
Timofey Solomko d1574786b2 HuffmanTree is no longer CustomStringConvertible. 2016-12-25 22:07:41 +03:00
Timofey Solomko c8a5813730 Removed append(contentsOf:) where possible and performed small cleanup. 2016-12-24 22:26:55 +03:00
Timofey Solomko 04106bfa8a Some changes to make deflate/bzip2 faster. 2016-12-24 18:42:56 +03:00
Timofey Solomko 85d2c0f7a4 Replaced pow() with bit shift operations. 2016-12-16 21:33:10 +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 5828570bed Swiftlinted. 2016-12-09 01:12:22 +03:00
Timofey Solomko 95c5221f49 HuffmanLength is no longer used. 2016-12-08 08:25: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 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