Go to the documentation of this file.
34 #include <sys/types.h>
36 #define BGZF_BLOCK_SIZE 0xff00 // make sure compressBound(BGZF_BLOCK_SIZE) < BGZF_MAX_BLOCK_SIZE
37 #define BGZF_MAX_BLOCK_SIZE 0x10000
39 #define BGZF_ERR_ZLIB 1
40 #define BGZF_ERR_HEADER 2
42 #define BGZF_ERR_MISUSE 8
61 #ifndef HTS_BGZF_TYPEDEF
63 #define HTS_BGZF_TYPEDEF
67 #define KSTRING_T kstring_t
96 #define bgzf_fdopen(fd, mode) bgzf_dopen((fd), (mode)) // for backward compatibility
172 #define bgzf_tell(fp) (((fp)->block_address << 16) | ((fp)->block_offset & 0xFFFF))
251 int bgzf_mt(
BGZF *fp,
int n_threads,
int n_sub_blks);