Returns BGZF block containing compressed chunk. If buffer is provided, it will be used for storing the block.
chunk of memory to be compressed
compression level, see zlib documentation (https://github.com/madler/zlib/blob/master/zlib.h)
optional buffer which will be used for storing decompressed data
For uncompressed BAM output, use level = 0.
See Implementation
Returns BGZF block containing compressed chunk. If buffer is provided, it will be used for storing the block.