Lines Matching refs:offset

284   state->offset = 0;  in mimesetstate()
666 size_t sz = curlx_sotouz(part->datasize - part->state.offset); in mime_mem_read()
676 memcpy(buffer, part->data + curlx_sotouz(part->state.offset), sz); in mime_mem_read()
681 static int mime_mem_seek(void *instream, curl_off_t offset, int whence) in mime_mem_seek() argument
687 offset += part->state.offset; in mime_mem_seek()
690 offset += part->datasize; in mime_mem_seek()
694 if(offset < 0 || offset > part->datasize) in mime_mem_seek()
697 part->state.offset = offset; in mime_mem_seek()
733 static int mime_file_seek(void *instream, curl_off_t offset, int whence) in mime_file_seek() argument
737 if(whence == SEEK_SET && !offset && !part->fp) in mime_file_seek()
743 return fseek(part->fp, (long) offset, whence) ? in mime_file_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()
809 part->state.offset >= part->datasize) { in read_part_content()
848 part->state.offset += sz; in read_part_content()
1018 mime->state.offset += 2; in mime_subparts_read()
1103 static int mime_subparts_seek(void *instream, curl_off_t offset, int whence) in mime_subparts_seek() argument
1109 if(whence != SEEK_SET || offset) in mime_subparts_seek()
2072 curl_off_t offset) in cr_mime_resume_from() argument
2076 if(offset > 0) { in cr_mime_resume_from()
2082 (offset - passed > (curl_off_t)sizeof(scratch)) ? in cr_mime_resume_from()
2084 curlx_sotouz(offset - passed); in cr_mime_resume_from()
2096 } while(passed < offset); in cr_mime_resume_from()
2100 ctx->total_len -= offset; in cr_mime_resume_from()