18 #ifndef __BGZFFILETYPERECOVERY_H__ 19 #define __BGZFFILETYPERECOVERY_H__ 21 #ifdef __ZLIB_AVAILABLE__ 28 class BgzfFileTypeRecovery :
public FileType 31 BgzfFileTypeRecovery()
36 ~BgzfFileTypeRecovery()
41 BgzfFileTypeRecovery(
const char * filename,
const char * mode);
46 bool operator == (
void * rhs);
48 bool operator != (
void * rhs);
66 return (bgzfReader != NULL);
70 unsigned int write(
const void * buffer,
unsigned int size);
75 int read(
void * buffer,
unsigned int size);
88 bool seek(int64_t offset,
int origin);
90 bool attemptRecoverySync(
bool (*checkSignature)(
void *data) ,
int length);
94 BGZFReader* bgzfReader;