Functions

bzip2 encode a buffer and write the output to a BufWriter