Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 49) sorted by relevance

12

/curl/src/
H A Dtool_cb_see.c48 int tool_seek_cb(void *userdata, curl_off_t offset, int whence) in tool_seek_cb() argument
58 if(offset > OUR_MAX_SEEK_O) { in tool_seek_cb()
62 curl_off_t left = offset; in tool_seek_cb()
83 if(LSEEK_ERROR == lseek(per->infd, offset, whence)) in tool_seek_cb()
H A Dtool_cb_see.h32 int tool_seek_cb(void *userdata, curl_off_t offset, int whence);
H A Dtool_formparse.h63 int tool_mime_stdin_seek(void *instream, curl_off_t offset, int whence);
/curl/docs/cmdline-opts/
H A Dcontinue-at.md6 Arg: <offset>
7 Help: Resumed transfer offset
20 Resume a previous transfer from the given byte offset. The given offset is the
/curl/tests/server/
H A Dgetpart.c113 size_t offset = 0; in readline() local
124 int bytestoread = curlx_uztosi(*bufsize - offset); in readline()
126 if(!fgets(*buffer + offset, bytestoread, stream)) in readline()
127 return (offset != 0) ? GPE_OK : GPE_END_OF_FILE; in readline()
129 *length = offset + line_length(*buffer + offset, bytestoread); in readline()
132 offset = *length; in readline()
H A Drtspd.c97 size_t offset; /* size of the incoming request */ member
666 pipereq_length = req->offset - req->checkindex; in get_request()
672 req->offset = 0; in get_request()
705 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
720 reqbuf[req->offset] = '\0'; in get_request()
721 storerequest(reqbuf, req->offset); in get_request()
727 req->offset += (size_t)got; in get_request()
728 reqbuf[req->offset] = '\0'; in get_request()
740 if((req->offset == REQBUFSIZ-1) && (got > 0)) { in get_request()
746 else if(req->offset > REQBUFSIZ-1) { in get_request()
[all …]
H A Dsws.c846 req->offset = 0; in init_httprequest()
887 reqbuf[req->offset] = '\0'; in get_request()
889 req->offset = 0; in get_request()
895 got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset); in get_request()
897 req->offset += got; in get_request()
925 if(req->offset) { in get_request()
930 req->offset = 0; in get_request()
948 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
974 req->offset += (size_t)got; in get_request()
975 reqbuf[req->offset] = '\0'; in get_request()
[all …]
/curl/lib/
H A Dmime.c284 state->offset = 0; in mimesetstate()
687 offset += part->state.offset; in mime_mem_seek()
694 if(offset < 0 || offset > part->datasize) in mime_mem_seek()
697 part->state.offset = offset; in mime_mem_seek()
769 size_t offset = curlx_sotouz(state->offset); in readback_bytes() local
771 if(numbytes > offset) { in readback_bytes()
772 sz = numbytes - offset; in readback_bytes()
773 bytes += offset; in readback_bytes()
776 sz = offset - numbytes; in readback_bytes()
787 state->offset += sz; in readback_bytes()
[all …]
H A Dsmb.c139 unsigned short offset; member
205 unsigned int offset; member
219 unsigned int offset; member
756 curl_off_t offset = data->req.offset; in smb_send_read() local
763 msg.offset = smb_swap32((unsigned int) offset); in smb_send_read()
764 msg.offset_high = smb_swap32((unsigned int) (offset >> 32)); in smb_send_read()
777 curl_off_t offset = data->req.offset; in smb_send_write() local
788 msg->offset = smb_swap32((unsigned int) offset); in smb_send_write()
999 data->req.offset = 0; in smb_request_state()
1045 data->req.offset += len; in smb_request_state()
[all …]
H A Dbufq.c142 static void chunk_peek_at(const struct buf_chunk *chunk, size_t offset, in chunk_peek_at() argument
145 offset += chunk->r_offset; in chunk_peek_at()
146 DEBUGASSERT(chunk->w_offset >= offset); in chunk_peek_at()
147 *pbuf = &chunk->x.data[offset]; in chunk_peek_at()
148 *plen = chunk->w_offset - offset; in chunk_peek_at()
548 bool Curl_bufq_peek_at(struct bufq *q, size_t offset, in Curl_bufq_peek_at() argument
558 if(offset >= clen) { in Curl_bufq_peek_at()
559 offset -= clen; in Curl_bufq_peek_at()
563 chunk_peek_at(c, offset, pbuf, plen); in Curl_bufq_peek_at()
H A Dsendf.h218 struct Curl_creader *reader, curl_off_t offset);
267 curl_off_t offset);
374 CURLcode Curl_creader_resume_from(struct Curl_easy *data, curl_off_t offset);
H A Dsendf.c584 curl_off_t offset) in Curl_creader_def_resume_from() argument
588 (void)offset; in Curl_creader_def_resume_from()
765 curl_off_t offset) in cr_in_resume_from() argument
792 (offset - passed > (curl_off_t)sizeof(scratch)) ? in cr_in_resume_from()
794 curlx_sotouz(offset - passed); in cr_in_resume_from()
810 } while(passed < offset); in cr_in_resume_from()
815 ctx->total_len -= offset; in cr_in_resume_from()
1318 curl_off_t offset) in cr_buf_resume_from() argument
1328 if(offset <= 0) in cr_buf_resume_from()
1330 boffset = (size_t)offset; in cr_buf_resume_from()
[all …]
H A Dheaders.c230 size_t offset; in unfold_value() local
234 offset = hs->value - hs->buffer; in unfold_value()
235 oalloc = olen + offset + 1; in unfold_value()
260 newhs->value = &newhs->buffer[offset]; in unfold_value()
H A Dcurl_setup.h469 # define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence) argument
493 # define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) argument
/curl/lib/vquic/
H A Dvquic.c372 size_t offset, to; in recvmmsg_packets() local
431 for(offset = 0; offset < mmsg[i].msg_len; offset = to) { in recvmmsg_packets()
434 to = offset + gso_size; in recvmmsg_packets()
436 pktlen = mmsg[i].msg_len - offset; in recvmmsg_packets()
442 result = recv_cb(bufs[i] + offset, pktlen, mmsg[i].msg_hdr.msg_name, in recvmmsg_packets()
476 size_t offset, to; in recvmsg_packets() local
520 for(offset = 0; offset < (size_t)nread; offset = to) { in recvmsg_packets()
523 to = offset + gso_size; in recvmsg_packets()
525 pktlen = (size_t)nread - offset; in recvmsg_packets()
532 recv_cb(buf + offset, pktlen, msg.msg_name, msg.msg_namelen, 0, userp); in recvmsg_packets()
/curl/docs/examples/
H A Danyauthput.c58 static int my_seek(void *userp, curl_off_t offset, int origin) in my_seek() argument
62 if(-1 == fseek(fp, (long) offset, origin)) in my_seek()
/curl/lib/vssh/
H A Dwolfssh.c254 word32 offset[2]; in wsftp_send() local
259 offset[0] = (word32)sshc->offset & 0xFFFFFFFF; in wsftp_send()
260 offset[1] = (word32)(sshc->offset >> 32) & 0xFFFFFFFF; in wsftp_send()
264 &offset[0], in wsftp_send()
285 len, sshc->offset); in wsftp_send()
286 sshc->offset += len; in wsftp_send()
300 word32 offset[2]; in wsftp_recv() local
303 offset[0] = (word32)sshc->offset & 0xFFFFFFFF; in wsftp_recv()
304 offset[1] = (word32)(sshc->offset >> 32) & 0xFFFFFFFF; in wsftp_recv()
308 &offset[0], in wsftp_recv()
[all …]
/curl/docs/libcurl/opts/
H A DCURLOPT_SEEKDATA.md49 static int seek_cb(void *clientp, curl_off_t offset, int origin)
52 lseek(d->our_fd, offset, origin);
H A DCURLOPT_SEEKFUNCTION.md32 int seek_callback(void *clientp, curl_off_t offset, int origin);
62 the data type for *offset* is not the same as defined for curl_off_t on
79 static int seek_cb(void *clientp, curl_off_t offset, int origin)
82 lseek(d->our_fd, offset, origin);
H A DCURLOPT_RESUME_FROM.md18 CURLOPT_RESUME_FROM - offset to resume transfer from
30 Pass a long as parameter. It contains the offset in number of bytes that you
H A DCURLOPT_RESUME_FROM_LARGE.md18 CURLOPT_RESUME_FROM_LARGE - offset to resume transfer from
31 Pass a curl_off_t as parameter. It contains the offset in number of bytes that
/curl/lib/vauth/
H A Dkrb5_sspi.c256 size_t offset = 0; in Curl_auth_create_gssapi_security_message() local
422 offset += wrap_buf[0].cbBuffer; in Curl_auth_create_gssapi_security_message()
423 memcpy(appdata + offset, wrap_buf[1].pvBuffer, wrap_buf[1].cbBuffer); in Curl_auth_create_gssapi_security_message()
424 offset += wrap_buf[1].cbBuffer; in Curl_auth_create_gssapi_security_message()
425 memcpy(appdata + offset, wrap_buf[2].pvBuffer, wrap_buf[2].cbBuffer); in Curl_auth_create_gssapi_security_message()
/curl/docs/libcurl/
H A Dcurl_mime_data_cb.md30 int seekfunc(void *arg, curl_off_t offset, int origin);
133 int seek_callback(void *arg, curl_off_t offset, int origin)
139 offset += p->size;
142 offset += p->position;
146 if(offset < 0)
148 p->position = offset;
H A Dcurl_ws_meta.md52 curl_off_t offset;
66 ## `offset`
69 the offset into the final fragment where this piece belongs.
/curl/include/curl/
H A Dwebsockets.h34 curl_off_t offset; /* the offset of this data into the frame */ member

Completed in 67 milliseconds

12