Compressing data with bzip3


The compression.bzip3 vocabulary can compress and decompress binary data with the help of the bzip3 library. All data is represented in the form of Byte arrays.

bzip3 is best used with text or code, and hence the io.encodings vocabularies, specifically the Encoding and decoding strings, io.encodings.utf8 and io.encodings.ascii will be of help.

If you are an experienced user and would like to use the low level API of bzip3, the Compression.bzip3.ffi library exposes the C bindings that allows for better performance via threading and other customizations. In order to use the functions imported you will need to use the alien vocabulary.