bgzfCompress

Returns BGZF block containing compressed chunk. If buffer is provided, it will be used for storing the block.

ubyte[]
bgzfCompress
(
ubyte[] chunk
,
int level = -1
,
ubyte[] buffer = null
)

Parameters

chunk ubyte[]

chunk of memory to be compressed

level int

compression level, see zlib documentation (https://github.com/madler/zlib/blob/master/zlib.h)

buffer ubyte[]

optional buffer which will be used for storing decompressed data

For uncompressed BAM output, use level = 0.

Meta