BZip2 compression with blitz

BlitzPlus Forums/BlitzPlus Programming/BZip2 compression with blitz

MagicalTux(Posted 2005) [#1]
You probably wanted once to do some bzip2 compression in your blitz applications. It can be a really handful thing when working on games (you can read/write from bzip2 files almost realtime, and data is read to a bank)...

http://ookoo.org/files/blitz/bzip2.zip

This contains a decls file for bzip2.dll and the bzip2.dll itself.

You'll need to create a bank to act as a buffer in order to read data from a file.

Seems to work well (at least for reading). I'm going to use that for my own needs :)

Note that I just use bzopen/bzread/bzclose/bzerror.