Hack Forums
[C] Binary compression - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] Binary compression (/showthread.php?tid=6053639)



Binary compression - Consulting Detective - Feb 29, 2020

Hi, does anyone here know any good sources about binary level file compression in C?

I'm curious and want to make a small compression engine from scratch just for fun. I'll try implementing Huffman's algorithm.


Update: This will be a little tricky, I tried compressing a small phrase by hand using the algorithm. Oh boy, that is a lot of steps. I need to freshen up on my data structures if I am to code this lol.

Spoiler (Click to View)


RE: Binary compression - sdfsdf - Mar 2, 2020

Hi
I usually use zlib for compression process. Zlib is pretty simple and that run with huffman algorithm. You should examine zlib source code.