Skip to content

ryandrake08/lzhl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liblzhl - LZH-Light compression/decompression library

This is an implementation of An Algorithm for Online Data Compression.

Origin

I could find two existing implementations of this code on the Internet:

I forked the second one, and made the following changes:

  • Got everything compiling with g++ and clang, on both Mac OSX and Linux
  • Removed a bunch of non-portable Windows-isms
  • Fixed a buffer overrun (read past end of array)
  • Fixed some type mismatch warnings
  • Fixed case-sensitivity trouble in the #includes
  • Cleaned up the C API
  • Added a rudimentary test program
  • Re-indented a few messy spots

Future

One day, I may get around to fixing up all the nasty int-long casts and re-doing this in more modern C++ style, but for now I'm just hoping that providing the existing code as a standalone project is useful to someone.

Building

make

Testing

Only a basic test program is supplied:

make test
./test

Resources

A collection of helpful links

License

liblzhl is released under the GNU LGPL as required by http://j2k.sourceforge.net/faq.shtml

About

liblzhl - LZH-Light compression/decompression library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published