Home
last modified time | relevance | path

Searched refs:size (Results 51 – 75 of 325) sorted by relevance

12345678910>>...13

/curl/lib/
H A Dmemdebug.c41 size_t size; member
136 size_t size; in curl_dbg_malloc() local
144 size = sizeof(struct memdebug) + wantedsize; in curl_dbg_malloc()
146 mem = (Curl_cmalloc)(size); in curl_dbg_malloc()
148 mem->size = wantedsize; in curl_dbg_malloc()
163 size_t size, user_size; in curl_dbg_calloc() local
173 size = sizeof(struct memdebug) + user_size; in curl_dbg_calloc()
175 mem = (Curl_ccalloc)(1, size); in curl_dbg_calloc()
177 mem->size = user_size; in curl_dbg_calloc()
265 mem = (Curl_crealloc)(mem, size); in curl_dbg_realloc()
[all …]
H A Dmime.c390 if(!size) in encoder_nop_read()
396 if(size) in encoder_nop_read()
400 return size; in encoder_nop_read()
418 if(!size) in encoder_7bit_read()
479 size -= 4; in encoder_base64_read()
519 if(size <= 0) in encoder_base64_size()
523 size = 4 * (1 + (size - 1) / 3); in encoder_base64_size()
526 return size + 2 * ((size - 1) / MAX_ENCODED_LINE_LENGTH); in encoder_base64_size()
1620 return size; in slist_size()
1646 return size; in multipart_size()
[all …]
H A Dstrdup.c136 void *Curl_saferealloc(void *ptr, size_t size) in Curl_saferealloc() argument
138 void *datap = realloc(ptr, size); in Curl_saferealloc()
139 if(size && !datap) in Curl_saferealloc()
/curl/docs/libcurl/opts/
H A DCURLOPT_DEBUGFUNCTION.md40 size_t size,
56 not null-terminated, but is exactly of the *size* as told by the
57 *size* argument.
111 FILE *stream, unsigned char *ptr, size_t size)
118 text, (long)size, (long)size);
120 for(i = 0; i < size; i += width) {
125 if(i + c < size)
132 for(c = 0; (c < width) && (i + c < size); c++) {
143 char *data, size_t size,
153 fwrite(data, size, 1, stderr);
[all …]
H A DCURLOPT_UPLOAD.md39 size before starting the transfer. The library enables this by adding a header
41 transfer, you must specify the size of the data with
51 static size_t read_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
55 'size' * 'nmemb' bytes */
56 size_t retcode = fread(ptr, size, nmemb, src);
66 curl_off_t fsize; /* set this to the size of the input file */
80 /* Set the size of the file to upload */
H A DCURLMOPT_CONTENT_LENGTH_PENALTY_SIZE.md16 CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE - size threshold for pipelining penalty
24 long size);
31 Pass a long with a **size** in bytes. If a transfer in a pipeline is
39 The default value is 0, which means that the size penalization is inactive.
H A DCURLINFO_CONTENT_LENGTH_UPLOAD.md17 CURLINFO_CONTENT_LENGTH_UPLOAD - get the specified size of the upload
30 Pass a pointer to a double to receive the specified size of the upload. Since
31 7.19.4, this returns -1 if the size is not known.
50 /* check the size */
H A DCURLOPT_WRITEFUNCTION.md24 size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userdata);
37 delivered data, and the size of that data is *nmemb*; *size* is always 1.
85 size_t size;
88 static size_t cb(char *data, size_t size, size_t nmemb, void *clientp)
90 size_t realsize = size * nmemb;
93 char *ptr = realloc(mem->response, mem->size + realsize + 1);
98 memcpy(&(mem->response[mem->size]), data, realsize);
99 mem->size += realsize;
100 mem->response[mem->size] = 0;
H A DCURLOPT_PUT.md43 static size_t read_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
47 'size' * 'nmemb' bytes */
48 size_t retcode = fread(ptr, size, nmemb, src);
58 curl_off_t fsize; /* set this to the size of the input file */
72 /* Set the size of the file to upload */
/curl/docs/examples/
H A Dsmtp-tls.c64 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument
68 size_t room = size * nmemb; in payload_source()
70 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
H A Dsmtp-authzid.c70 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument
74 size_t room = size * nmemb; in payload_source()
76 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
H A Dsmtp-multi.c60 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument
64 size_t room = size * nmemb; in payload_source()
66 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
H A Dsmtp-ssl.c64 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument
68 size_t room = size * nmemb; in payload_source()
70 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
H A Dsessioninfo.c40 static size_t wrfu(void *ptr, size_t size, size_t nmemb, void *stream) in wrfu() argument
69 fprintf(stderr, "Certificate #%u: %.*s", i, dn.size, dn.data); in wrfu()
86 return size * nmemb; in wrfu()
H A Dcrawler.c59 size_t size; member
66 char *ptr = realloc(mem->buf, mem->size + realsize); in grow_buffer()
73 memcpy(&(mem->buf[mem->size]), contents, realsize); in grow_buffer()
74 mem->size += realsize; in grow_buffer()
88 mem->size = 0; in make_handle()
124 htmlDocPtr doc = htmlReadMemory(mem->buf, mem->size, url, NULL, opts); in follow_links()
211 if(is_html(ctype) && mem->size > 100) { in main()
/curl/tests/data/
H A Dtest10410 <size>
12 </size>
21 FTP --head to get file size only
H A Dtest13813 <size>
15 </size>
28 FTP download without size in RETR string and no SIZE command
/curl/packages/OS400/
H A Dos400sys.c128 if(size < 0) in get_buffer()
132 buf->buf = malloc(size); in get_buffer()
134 buf->size = size; in get_buffer()
139 if((unsigned long) size <= buf->size) { in get_buffer()
143 if(buf->size - size < MIN_BYTE_GAIN) in get_buffer()
149 cp = realloc(buf->buf, size); in get_buffer()
152 buf->size = size; in get_buffer()
154 else if(size <= buf->size) in get_buffer()
180 if(size < 0) in buffer_threaded()
195 return get_buffer(bufs + key, size); in buffer_threaded()
[all …]
/curl/tests/libtest/
H A Dlib1541.c80 static size_t header_callback(void *ptr, size_t size, size_t nmemb, in header_callback() argument
84 size_t len = size * nmemb; in header_callback()
99 (void)fwrite(ptr, size, nmemb, stdout); in header_callback()
103 static size_t write_callback(void *ptr, size_t size, size_t nmemb, void *userp) in write_callback() argument
109 fwrite(ptr, size, nmemb, stdout); in write_callback()
110 return size * nmemb; in write_callback()
H A Dlib1556.c34 static size_t header(void *ptr, size_t size, size_t nmemb, void *stream) in header() argument
36 size_t headersize = size * nmemb; in header()
44 return nmemb * size; in header()
H A Dlib1520.c52 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) in read_callback() argument
57 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in read_callback()
/curl/tests/http/clients/
H A Dws-data.c44 void dump(const char *text, unsigned char *ptr, size_t size, in dump() argument
57 text, (unsigned long)size, (unsigned long)size); in dump()
59 for(i = 0; i<size; i += width) { in dump()
66 if(i + c < size) in dump()
72 for(c = 0; (c < width) && (i + c < size); c++) { in dump()
74 if(nohex && (i + c + 1 < size) && ptr[i + c] == 0x0D && in dump()
82 if(nohex && (i + c + 2 < size) && ptr[i + c + 1] == 0x0D && in dump()
H A Dh2-pausing.c63 char *data, size_t size, in debug_cb() argument
90 if(size > 0) { in debug_cb()
93 for(i = 0; i < size - 1; i++) { in debug_cb()
107 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb()
114 (void)fwrite(data, size, 1, output); in debug_cb()
115 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb()
125 fprintf(output, "[%ld bytes data]\n", (long)size); in debug_cb()
166 static size_t cb(void *data, size_t size, size_t nmemb, void *clientp) in cb() argument
168 size_t realsize = size * nmemb; in cb()
/curl/src/
H A Dtool_urlglob.c44 pat->content.Set.size = 1; in glob_fixed()
104 pat = &glob->pattern[glob->size]; in glob_set()
107 pat->content.Set.size = 0; in glob_set()
153 ++pat->content.Set.size; in glob_set()
200 pat = &glob->pattern[glob->size]; in glob_range()
445 if(++glob->size >= GLOB_PATTERN_NUM) in glob_parse()
515 for(i = 0; i < glob->size; i++) { in glob_cleanup()
549 pat = &glob->pattern[glob->size - 1 - i]; in glob_next_url()
584 for(i = 0; i < glob->size; ++i) { in glob_next_url()
646 if(num && (num < glob->size)) { in glob_match_url()
[all …]
/curl/docs/cmdline-opts/
H A Dmax-filesize.md6 Help: Maximum file size to download
19 Specify the maximum size (in bytes) of a file to download. If the file
23 A size modifier may be used. For example, Appending 'k' or 'K' counts the
27 **NOTE**: before curl 8.4.0, when the file size is not known prior to

Completed in 134 milliseconds

12345678910>>...13