Documentation ¶
Overview ¶
packge bgzf provides readers and writers for BGZF files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads in parallel from a BGZF file.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer writes in parallel to a BGZF file.
func NewWriter ¶
NewWriter returns a Writer for the given io.Writer.
Following zlib, levels range from 1 (BestSpeed) to 9 (BestCompression); higher levels typically run slower but compress more. Level 0 (NoCompression) does not attempt any compression; it only adds the necessary DEFLATE framing. Level -1 (DefaultCompression) uses the default compression level. Level -2 (HuffmanOnly) will use Huffman compression only, giving a very fast compression for all types of input, but sacrificing considerable compression efficiency.