General Information
IntroductionaPLib is a 32-bit compression library based on the compression algorithm used in aPACK (my executable packer). aPLib is an easy-to-use alternative to many of the heavy-weight compression libraries available. The compression ratios achieved by aPLib combined with the speed and tiny footprint of the decompressors (as low as 169 bytes!) makes it the ideal choice for many products. Since the first public release in 1998, aPLib has been one of the top pure LZ-based compression libraries available. It is used in a wide range of products including executable compression and protection software, archivers, games, embedded systems, and handheld devices. CompatibilityThe aPLib package includes pre-compiled libraries in a number of formats. The following is a list of compilers/linkers that have been confirmed to work with aPLib:
Thread-safetyAll compression and decompression functions are thread-safe. Using aPLibFor C/C++ you simply include For other languages you can either check if there is a useable example, or use the DLL version. Most linkers allow calling C functions in an external library, so usually there is a way to use one of the libraries. aPLib performs memory-to-memory compression and decompression, so getting data into an input buffer and allocating an output buffer is your responsibility. All functions return Attempting to compress incompressible data can lead to expansion. You can
get the maximum possible coded size by passing the size of the input to the
function When calling
If you do not have a callback for
Safe Wrapper FunctionsStarting with aPLib v0.34, there are additional functions included which provide a better way of handling the compressed data in the examples, and also serve as an example of how to add functionality through function wrappers. The The Contact InformationIf you have any questions, suggestions or bug-reports about aPLib, please feel free to contact me by e-mail at: You can get the latest version of aPLib and my other software at: If you want to register aPLib, please check the registration information on the homepage. When you register you will receive the registered versions of the libraries. |