Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 372) sorted by relevance

12345678910>>...15

/curl/src/
H A Dtool_progress.c34 static char *max5data(curl_off_t bytes, char *max5) in max5data() argument
42 if(bytes < CURL_OFF_T_C(100000)) in max5data()
43 msnprintf(max5, 6, "%5" CURL_FORMAT_CURL_OFF_T, bytes); in max5data()
45 else if(bytes < CURL_OFF_T_C(10000) * ONE_KILOBYTE) in max5data()
48 else if(bytes < CURL_OFF_T_C(100) * ONE_MEGABYTE) in max5data()
51 CURL_FORMAT_CURL_OFF_T "M", bytes/ONE_MEGABYTE, in max5data()
54 else if(bytes < CURL_OFF_T_C(10000) * ONE_MEGABYTE) in max5data()
58 else if(bytes < CURL_OFF_T_C(100) * ONE_GIGABYTE) in max5data()
61 CURL_FORMAT_CURL_OFF_T "G", bytes/ONE_GIGABYTE, in max5data()
64 else if(bytes < CURL_OFF_T_C(10000) * ONE_GIGABYTE) in max5data()
[all …]
H A Dtool_cb_wrt.c126 outs->bytes = 0; in tool_create_output_file()
141 size_t bytes = sz * nmemb; in tool_write_cb() local
158 if(bytes > (size_t)CURL_MAX_HTTP_HEADER) { in tool_write_cb()
165 if(bytes > (size_t)CURL_MAX_WRITE_SIZE) { in tool_write_cb()
184 if(!outs->fopened && outs->bytes) in tool_write_cb()
204 if(is_tty && (outs->bytes < 2000) && !config->terminal_binary_ok) { in tool_write_cb()
206 if(memchr(buffer, 0, bytes)) { in tool_write_cb()
223 DWORD rlen = (DWORD)bytes; in tool_write_cb()
344 rc = bytes; in tool_write_cb()
356 if(bytes == rc) in tool_write_cb()
[all …]
/curl/lib/
H A Dcurl_des.c51 void Curl_des_set_odd_parity(unsigned char *bytes, size_t len) in Curl_des_set_odd_parity() argument
56 unsigned char b = bytes[i]; in Curl_des_set_odd_parity()
63 bytes[i] |= 0x01; in Curl_des_set_odd_parity()
65 bytes[i] &= 0xfe; in Curl_des_set_odd_parity()
H A Dnoproxy.c82 unsigned int bytes; in Curl_cidr6_match() local
90 bytes = bits / 8; in Curl_cidr6_match()
92 if((bytes > 16) || ((bytes == 16) && rest)) in Curl_cidr6_match()
98 if(bytes && memcmp(address, check, bytes)) in Curl_cidr6_match()
100 if(rest && !((address[bytes] ^ check[bytes]) & (0xff << (8 - rest)))) in Curl_cidr6_match()
H A Dprogress.c68 static char *max5data(curl_off_t bytes, char *max5) in max5data() argument
76 if(bytes < CURL_OFF_T_C(100000)) in max5data()
77 msnprintf(max5, 6, "%5" FMT_OFF_T, bytes); in max5data()
79 else if(bytes < CURL_OFF_T_C(10000) * ONE_KILOBYTE) in max5data()
82 else if(bytes < CURL_OFF_T_C(100) * ONE_MEGABYTE) in max5data()
85 FMT_OFF_T "M", bytes/ONE_MEGABYTE, in max5data()
88 else if(bytes < CURL_OFF_T_C(10000) * ONE_MEGABYTE) in max5data()
92 else if(bytes < CURL_OFF_T_C(100) * ONE_GIGABYTE) in max5data()
95 FMT_OFF_T "G", bytes/ONE_GIGABYTE, in max5data()
98 else if(bytes < CURL_OFF_T_C(10000) * ONE_GIGABYTE) in max5data()
[all …]
H A Dcurl_multibyte.c70 int bytes = WideCharToMultiByte(CP_UTF8, 0, str_w, -1, in curlx_convert_wchar_to_UTF8() local
72 if(bytes > 0) { in curlx_convert_wchar_to_UTF8()
73 str_utf8 = malloc(bytes); in curlx_convert_wchar_to_UTF8()
75 if(WideCharToMultiByte(CP_UTF8, 0, str_w, -1, str_utf8, bytes, in curlx_convert_wchar_to_UTF8()
/curl/tests/data/
H A Dtest155937 CURLOPT_URL 10000000 bytes URL == 43
38 CURLOPT_POSTFIELDS 10000000 bytes data == 0
39 CURLUPART_URL 10000000 bytes URL == 3 (Malformed input to a URL function)
40 CURLUPART_SCHEME 10000000 bytes scheme == 3 (Malformed input to a URL function)
41 CURLUPART_USER 10000000 bytes user == 3 (Malformed input to a URL function)
H A Dtest111716 Accept-Ranges: bytes
26 Accept-Ranges: bytes
27 Content-Range: bytes 10-18/155
57 Accept-Ranges: bytes
64 Accept-Ranges: bytes
65 Content-Range: bytes 10-18/155
75 Range: bytes=10-22
81 Range: bytes=10-22
H A Dtest104316 Accept-Ranges: bytes
18 Content-Range: bytes 40-99/100
38 Accept-Ranges: bytes
40 Content-Range: bytes 40-99/100
76 Range: bytes=40-
H A Dtest115114 # 3000 bytes name + 1096 bytes content is fine
15 # 3000 bytes name + 1097 bytes content is NOT OK
16 # 4096 bytes name + 1 byte content is NOT OK
17 # 4094 bytes name + 1 byte content is fine
H A Dtest19419 Accept-Ranges: bytes
21 Content-Range: bytes */87
34 Accept-Ranges: bytes
36 Content-Range: bytes */87
62 Range: bytes=87-
H A Dtest9219 Accept-Ranges: bytes
21 Content-Range: bytes */87
34 Accept-Ranges: bytes
36 Content-Range: bytes */87
60 Range: bytes=87-
H A Dtest18825 Content-Range: bytes 50-
38 Content-Range: bytes 50-
63 Range: bytes=50-
69 Range: bytes=50-
H A Dtest16420 Accept-Ranges: bytes
26 Content-range: bytes 0-10/3781
33 Content-range: bytes 12-15/3781
60 Range: bytes=0-10,12-15
H A Dtest105815 Accept-Ranges: bytes
17 Content-Range: bytes 100-200/201
45 Range: bytes=-101
H A Dtest1218 Accept-Ranges: bytes
20 Content-Range: bytes 100-200/3527
48 Range: bytes=100-200
H A Dtest47917 Accept-Ranges: bytes
31 Accept-Ranges: bytes
44 Accept-Ranges: bytes
54 Accept-Ranges: bytes
H A Dtest42716 Accept-Ranges: bytes
31 Accept-Ranges: bytes
48 Keep Cookie: header within 8190 bytes
/curl/docs/cmdline-opts/
H A Drange.md6 Help: Retrieve only the bytes within RANGE
25 specifies the first 500 bytes
28 specifies the second 500 bytes
31 specifies the last 500 bytes
34 specifies the bytes from offset 9500 and forward
/curl/docs/libcurl/opts/
H A DCURLINFO_SIZE_UPLOAD_T.md19 CURLINFO_SIZE_UPLOAD_T - get the number of uploaded bytes
32 Pass a pointer to a *curl_off_t* to receive the total amount of bytes that
54 printf("Uploaded %" CURL_FORMAT_CURL_OFF_T " bytes\n", ul);
H A DCURLINFO_SIZE_UPLOAD.md19 CURLINFO_SIZE_UPLOAD - get the number of uploaded bytes
32 Pass a pointer to a double to receive the total amount of bytes that were
57 printf("Uploaded %.0f bytes\n", ul);
H A DCURLOPT_LOW_SPEED_LIMIT.md19 CURLOPT_LOW_SPEED_LIMIT - low speed limit in bytes per second
32 Pass a long as parameter. It contains the average transfer speed in bytes per
52 /* abort if slower than 30 bytes/sec during 60 seconds */
H A DCURLINFO_EARLYDATA_SENT_T.md19 CURLINFO_EARLYDATA_SENT_T - get the number of bytes sent as TLS early data
32 Pass a pointer to an *curl_off_t* to receive the total amount of bytes that
43 bytes had been sent, but were rejected, it reports -127 as the amount "sent".
64 printf("TLS earlydata: %" CURL_FORMAT_CURL_OFF_T " bytes\n", amount);
H A DCURLOPT_TFTP_BLKSIZE.md29 RFC 2348 is 8-65464 bytes. The default of 512 bytes is used if this option is
32 returns an option acknowledgment with no block size, the default of 512 bytes
H A DCURLINFO_SIZE_DOWNLOAD_T.md20 CURLINFO_SIZE_DOWNLOAD_T - get the number of downloaded bytes
33 Pass a pointer to a *curl_off_t* to receive the total amount of bytes that
58 printf("Downloaded %" CURL_FORMAT_CURL_OFF_T " bytes\n", dl);

Completed in 36 milliseconds

12345678910>>...15