Home
last modified time | relevance | path

Searched refs:totalsize (Results 1 - 8 of 8) sorted by relevance

/third_party/curl/tests/libtest/
H A Dlib1533.c60 size_t totalsize = nitems * size; in read_callback() local
63 if(bytes_to_send > totalsize) { in read_callback()
64 bytes_to_send = totalsize; in read_callback()
83 size_t totalsize = nmemb * size; in write_callback() local
97 return totalsize; in write_callback()
H A Dlib1948.c36 size_t totalsize = size * nmemb; in put_callback() local
37 size_t tocopy = (putdata->len < totalsize) ? putdata->len : totalsize; in put_callback()
/third_party/curl/lib/
H A Dcurl_range.c70 curl_off_t totalsize; in Curl_range() local
76 totalsize = to - from; in Curl_range()
77 if(totalsize == CURL_OFF_T_MAX) in Curl_range()
80 data->req.maxdownload = totalsize + 1; /* include last byte */ in Curl_range()
/third_party/curl/tests/server/
H A Drtspd.c125 static void storerequest(char *reqbuf, size_t totalsize);
600 static void storerequest(char *reqbuf, size_t totalsize) in storerequest() argument
613 if(totalsize == 0) in storerequest()
626 writeleft = totalsize; in storerequest()
628 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
637 logmsg("Wrote request (%zu bytes) input to %s", totalsize, dumpfile); in storerequest()
642 totalsize-writeleft, totalsize, dumpfile); in storerequest()
H A Dsws.c139 static void storerequest(const char *reqbuf, size_t totalsize);
788 static void storerequest(const char *reqbuf, size_t totalsize) in storerequest() argument
802 if(totalsize == 0) in storerequest()
815 writeleft = totalsize; in storerequest()
817 written = fwrite(&reqbuf[totalsize-writeleft], in storerequest()
826 logmsg("Wrote request (%zu bytes) input to %s", totalsize, dumpfile); in storerequest()
831 totalsize-writeleft, totalsize, dumpfile); in storerequest()
/third_party/curl/tests/http/clients/
H A Dh2-pausing.c156 curl_off_t totalsize; in cb() local
160 &totalsize) == CURLE_OK) in cb()
162 "\n", handle->idx, totalsize); in cb()
/third_party/python/Modules/
H A D_winapi.c787 Py_ssize_t i, envsize, totalsize; in getenvironment() local
814 totalsize = 1; /* trailing null character */ in getenvironment()
842 if (totalsize > PY_SSIZE_T_MAX - size) { in getenvironment()
846 totalsize += size; /* including '=' */ in getenvironment()
850 if (totalsize > PY_SSIZE_T_MAX - size) { in getenvironment()
854 totalsize += size; /* including trailing '\0' */ in getenvironment()
857 buffer = PyMem_NEW(wchar_t, totalsize); in getenvironment()
863 end = buffer + totalsize; in getenvironment()
/third_party/python/Lib/test/
H A Dtest_struct.py566 totalsize = support.calcobjsize('2n3P')
568 totalsize += struct.calcsize('P3n0P') * (number_of_codes + 1)
569 support.check_sizeof(self, struct.Struct(format_str), totalsize)

Completed in 11 milliseconds