Go to the documentation of this file.
8 #ifndef CURLTYPE_DEFINED
9 #define CURLTYPE_DEFINED
14 #define CURLE_FAILED_INIT 1
97 URL_t *
urlOpen(
char *fname, CURLcode (*callBack)(CURL*),
const char* mode);
110 #endif // LIBBIGWIG_IO_H
void urlClose(URL_t *URL)
Close a local/remote file.
Definition: io.c:286
char * fname
Definition: bigWigIO.h:52
size_t GLOBAL_DEFAULTBUFFERSIZE
Definition: io.c:12
size_t bufLen
Definition: bigWigIO.h:49
bigWigFile_type_enum
Definition: bigWigIO.h:28
void * memBuf
Definition: bigWigIO.h:45
CURL * curl
Definition: bigWigIO.h:41
int isCompressed
Definition: bigWigIO.h:51
size_t bufPos
Definition: bigWigIO.h:47
size_t urlRead(URL_t *URL, void *buf, size_t bufSize)
Reads data into the given buffer.
Definition: io.c:89
This structure holds the file pointers and buffers needed for raw access to local and remote files.
Definition: bigWigIO.h:38
URL_t * urlOpen(char *fname, CURLcode(*callBack)(CURL *), const char *mode)
Open a local or remote file.
Definition: io.c:161
FILE * fp
Definition: bigWigIO.h:43
CURLcode urlSeek(URL_t *URL, size_t pos)
Seeks to a given position in a local or remote file.
Definition: io.c:120
size_t bufSize
Definition: bigWigIO.h:48
size_t filePos
Definition: bigWigIO.h:46