51 {
52
54
56
57 assert(this->file);
58
59 int err = fseek(this->file, 0, SEEK_END);
60 assert(err == 0);
61
63
64 err = fseek(this->file, 0, SEEK_SET);
65 assert(err == 0);
66
68
70 curl_easy_setopt(self->locals.
handle, CURLOPT_READDATA, self);
71}
#define super(type, obj, method,...)
static size_t readFunction(char *data, size_t size, size_t count, ident self)
The CURLOPT_READFUNCTION callback.
URL session tasks are handles to pending URL operations.
ident handle
The backing libcurl handle.
size_t bytesExpectedToSend
The count of bytes this task expects to send.