Timofey Solomko
|
8b6b9b9478
|
Add bitSize function to EncodingHuffmanTree
This function calculates expected size (in bits) of data based on data's stats.
|
2017-09-02 23:01:01 +03:00 |
|
Timofey Solomko
|
cc77cfaad6
|
Use fatalError instead of symbolNotFound error throw in EncodingHuffmanTree
It is a programming error if symbol is not found during encoding, thus, we should use fatalError.
|
2017-09-02 20:07:19 +03:00 |
|
Timofey Solomko
|
cb54a5fa02
|
Use tuples in inits of huffman trees
|
2017-09-02 20:03:21 +03:00 |
|
Timofey Solomko
|
12da128ddd
|
Change EncodingHuffmanTree API to be more consistent with decoding tree and cleanup usage
|
2017-08-29 00:10:04 +03:00 |
|
Timofey Solomko
|
9827e32bdd
|
Extract code for huffman encoding into separate class
|
2017-08-29 00:01:03 +03:00 |
|