- 15 Mar, 2017 1 commit
-
-
gawine committed
-
- 24 Nov, 2016 2 commits
- 22 Nov, 2016 9 commits
-
-
Rudolf committed
-
Program is now good-to-go and properly encrypts/decrypts all files without errors.
Rudolf committed -
This simple printing no longer shows the tree properly
Rudolf committed -
Debugged via valgrind The tree freeing was leftover from single-spaced binary tree.
Rudolf committed -
And show useful logs only when DEBUG := 1
Rudolf committed -
This character is special because we cannot directly address it. We need to make sure we are at the leaf node before.
Rudolf committed -
Rudolf committed
-
This saves more than huffman encoding. Note the header is still stored as usual.
Rudolf committed -
Rudolf committed
-
- 21 Nov, 2016 1 commit
-
-
Rudolf committed
-
- 18 Nov, 2016 9 commits
-
-
Rudolf committed
-
Rudolf committed
-
This is simpler and less error prone. Just compare right->ch and if it doesn't match, check if next left is the last left.
Rudolf committed -
This allows the last byte to be interpreted correctly, by not allowing the cursor to move further than the max bits to read.
Rudolf committed -
This allows custom use by moving the start of bit reading.
Rudolf committed -
This somehow worked, but with upcoming first-3 bits as throwaways, it no longer does. FIXIT
Rudolf committed -
No need to allocate +1 now.
Rudolf committed -
This might otherwise confuse with regular '0'.
Rudolf committed -
As I heard today, the compressor should do binary files. NB! This EOF solution works perfectly fine, as 0xff is interpreted as ' ' (not space). Normal text files never have this character in them.
Rudolf committed
-
- 17 Nov, 2016 8 commits
-
-
This value should never be less than 0
Rudolf committed -
Also remove variables as I had something in mind I am not planning to do.
Rudolf committed -
Also adjust some spaces and whatnot.
Rudolf committed -
Rudolf committed
-
Rudolf committed
-
Rudolf committed
-
Rudolf committed
-
Use same style on all files and add guards to headers, where missing.
Rudolf committed
-
- 16 Nov, 2016 10 commits
-
-
The 0 char was encoded as just 0 (as the left->ch == 0 when it is a branch). Fix is to first compare right index, and if it doesn't match then use last left.
Rudolf committed -
Our special 0xff as EOF does not allow some files.
Rudolf committed -
Rudolf committed
-
Rudolf committed
-
Rudolf committed
-
Rudolf committed
-
If the file has been padded with extra 0's (since file is written in total bytes), there is no way to determine what should be the last value. Implement special 0xFF for this case. This also changes char to unsigned to avoid comparison failure.
Rudolf committed -
Rudolf committed
-
Rudolf committed
-
While stdin/stdout is all nice and dandy for piping, we want to show useful information about compression, so remove this feature.
Rudolf committed
-