Home
last modified time | relevance | path

Searched refs:nitems (Results 1 – 23 of 23) sorted by relevance

/curl/docs/examples/
H A Dwebsocket-cb.c31 static size_t writecb(char *b, size_t size, size_t nitems, void *p) in writecb() argument
38 fprintf(stderr, "Bytes: %u", (unsigned int)(nitems * size)); in writecb()
39 for(i = 0; i < nitems; i++) in writecb()
41 return nitems; in writecb()
/curl/tests/libtest/
H A Dlib2301.c94 static size_t writecb(char *b, size_t size, size_t nitems, void *p) in writecb() argument
103 size_t incoming = nitems; in writecb()
105 (int)nitems); in writecb()
106 for(i = 0; i < nitems; i++) in writecb()
115 nitems = 0; in writecb()
117 if(nitems != incoming) in writecb()
119 return nitems; in writecb()
H A Dlib537.c124 rlim_t nitems, i; local
226 for(nitems = i = 1; nitems <= i; i *= 2)
227 nitems = i;
228 if(nitems > 0x7fff)
229 nitems = 0x40000;
237 nitems /= 2;
250 for(i = 0; i < nitems; i++)
265 for(nitems = i = 1; nitems <= i; i *= 2)
266 nitems = i;
267 if(nitems > 0x7fff)
[all …]
H A Dlib518.c125 rlim_t nitems, i; in test_rlimit() local
246 for(nitems = i = 1; nitems <= i; i *= 2) in test_rlimit()
247 nitems = i; in test_rlimit()
248 if(nitems > 0x7fff) in test_rlimit()
249 nitems = 0x40000; in test_rlimit()
251 num_open.rlim_max = sizeof(*memchunk) * nitems; in test_rlimit()
254 memchunk = malloc(sizeof(*memchunk) * (size_t)nitems); in test_rlimit()
257 nitems /= 2; in test_rlimit()
259 } while(nitems && !memchunk); in test_rlimit()
270 for(i = 0; i < nitems; i++) in test_rlimit()
H A Dlib2302.c79 static size_t writecb(char *buffer, size_t size, size_t nitems, void *p) in writecb() argument
82 size_t incoming = nitems; in writecb()
89 if(nitems != incoming) in writecb()
91 return nitems; in writecb()
H A Dlib1971.c28 static size_t read_callback(char *buffer, size_t size, size_t nitems, in read_callback() argument
33 (void)nitems; /* unused */ in read_callback()
H A Dlib1975.c28 static size_t read_callback(char *buffer, size_t size, size_t nitems, in read_callback() argument
33 (void)nitems; /* unused */ in read_callback()
H A Dlib1518.c30 static size_t writecb(char *buffer, size_t size, size_t nitems, in writecb() argument
35 (void)nitems; in writecb()
H A Dlib1533.c53 static size_t read_callback(char *ptr, size_t size, size_t nitems, in read_callback() argument
60 size_t totalsize = nitems * size; in read_callback()
/curl/docs/libcurl/
H A Dcurl_mime_data_cb.md28 size_t readfunc(char *buffer, size_t size, size_t nitems, void *arg);
65 should be filled up with at most *size* multiplied with *nitems* number
119 size_t read_callback(char *buffer, size_t size, size_t nitems, void *arg)
124 nitems *= size;
125 if(sz > nitems)
126 sz = nitems;
H A Dcurl_ws_meta.md114 size_t size, size_t nitems, void *p)
H A Dlibcurl-tutorial.md322 size_t function(char *bufptr, size_t size, size_t nitems, void *userp);
325 and *size*nitems* is the size of the buffer and therefore also the maximum
/curl/docs/libcurl/opts/
H A DCURLOPT_HEADERFUNCTION.md31 size_t nitems,
47 of that data is *nitems*; *size* is always 1. The provided header line is not
110 size_t nitems, void *userdata)
112 /* received header is nitems * size long in 'buffer' NOT ZERO TERMINATED */
114 return nitems * size;
H A DCURLOPT_HEADERDATA.md58 size_t nitems, void *userdata)
64 return nitems * size;
H A DCURLOPT_READFUNCTION.md28 size_t read_callback(char *buffer, size_t size, size_t nitems, void *userdata);
40 filled up with at most *size* multiplied with *nitems* number of bytes
/curl/src/
H A Dtool_formparse.c179 size_t size, size_t nitems, void *arg) in tool_mime_stdin_read() argument
189 if(curlx_uztoso(nitems) > bytesleft) in tool_mime_stdin_read()
190 nitems = curlx_sotouz(bytesleft); in tool_mime_stdin_read()
192 if(nitems) { in tool_mime_stdin_read()
195 memcpy(buffer, sip->data + curlx_sotouz(sip->curpos), nitems); in tool_mime_stdin_read()
199 nitems = fread(buffer, 1, nitems, stdin); in tool_mime_stdin_read()
209 sip->curpos += curlx_uztoso(nitems); in tool_mime_stdin_read()
211 return nitems; in tool_mime_stdin_read()
H A Dtool_formparse.h62 size_t size, size_t nitems, void *arg);
/curl/lib/
H A Dmime.c64 static size_t mime_subparts_read(char *buffer, size_t size, size_t nitems,
662 static size_t mime_mem_read(char *buffer, size_t size, size_t nitems, in mime_mem_read() argument
669 if(!nitems) in mime_mem_read()
672 if(sz > nitems) in mime_mem_read()
673 sz = nitems; in mime_mem_read()
724 if(!nitems) in mime_file_read()
730 return fread(buffer, size, nitems, part->fp); in mime_file_read()
1008 while(nitems) { in mime_subparts_read()
1042 sz = readback_part(part, buffer, nitems, hasread); in mime_subparts_read()
1063 nitems -= sz; in mime_subparts_read()
[all …]
H A Dmime.h154 size_t Curl_mime_read(char *buffer, size_t size, size_t nitems,
/curl/tests/http/clients/
H A Dhx-upload.c177 static size_t my_write_cb(char *buf, size_t nitems, size_t buflen, in my_write_cb() argument
181 size_t blen = (nitems * buflen); in my_write_cb()
194 nwritten = fwrite(buf, nitems, buflen, t->out); in my_write_cb()
203 static size_t my_read_cb(char *buf, size_t nitems, size_t buflen, in my_read_cb() argument
207 size_t blen = (nitems * buflen); in my_read_cb()
H A Dhx-download.c174 static size_t my_write_cb(char *buf, size_t nitems, size_t buflen, in my_write_cb() argument
178 size_t blen = (nitems * buflen); in my_write_cb()
199 nwritten = fwrite(buf, nitems, buflen, t->out); in my_write_cb()
/curl/.github/scripts/
H A Dspellcheck.words563 nitems
/curl/include/curl/
H A Dcurl.h278 size_t nitems,
397 size_t nitems,

Completed in 39 milliseconds