/curl/lib/ |
H A D | bufq.h | 38 size_t r_offset; /* first unread bytes */ 61 size_t chunk_size, size_t spare_max); 125 void Curl_bufq_init(struct bufq *q, size_t chunk_size, size_t max_chunks); 132 size_t max_chunks, int opts); 135 size_t max_chunks, int opts); 151 size_t Curl_bufq_len(const struct bufq *q); 159 size_t Curl_bufq_space(const struct bufq *q); 182 const char *buf, size_t len, 183 size_t *pnwritten); 201 size_t *pnread); [all …]
|
H A D | dynhds.h | 40 size_t namelen; 41 size_t valuelen; 46 size_t hds_len; /* number of entries in hds */ 47 size_t hds_allc; /* size of hds allocation */ 48 size_t max_entries; /* size limit number of entries */ 49 size_t strs_len; /* length of all strings */ 50 size_t max_strs_size; /* max length of all strings */ 63 size_t max_strs_size); 78 size_t Curl_dynhds_count(struct dynhds *dynhds); 112 size_t Curl_dynhds_count_name(struct dynhds *dynhds, [all …]
|
H A D | hash.h | 34 typedef size_t (*hash_function) (void *key, 41 typedef size_t (*comp_function) (void *key1, 57 size_t slots; 58 size_t size; 70 size_t key_len; 79 size_t slot_index; 87 size_t slots, 99 size_t Curl_hash_count(struct Curl_hash *h); 103 size_t Curl_hash_str(void *key, size_t key_length, size_t slots_num); 104 size_t Curl_str_key_compare(void *k1, size_t key1_len, void *k2, [all …]
|
H A D | warnless.c | 62 #define CURL_MASK_USIZE_T ((size_t)~0) 107 curl_off_t curlx_uztoso(size_t uznum) in curlx_uztoso() 129 int curlx_uztosi(size_t uznum) in curlx_uztosi() 136 DEBUGASSERT(uznum <= (size_t) CURL_MASK_SINT); in curlx_uztosi() 148 unsigned long curlx_uztoul(size_t uznum) in curlx_uztoul() 169 unsigned int curlx_uztoui(size_t uznum) in curlx_uztoui() 254 ssize_t curlx_uztosz(size_t uznum) in curlx_uztosz() 273 size_t curlx_sotouz(curl_off_t sonum) in curlx_sotouz() 301 DEBUGASSERT((size_t) sznum <= (size_t) CURL_MASK_SINT); in curlx_sztosi() 333 size_t curlx_sitouz(int sinum) in curlx_sitouz() [all …]
|
H A D | warnless.h | 40 int curlx_uztosi(size_t uznum); 42 curl_off_t curlx_uztoso(size_t uznum); 44 unsigned long curlx_uztoul(size_t uznum); 46 unsigned int curlx_uztoui(size_t uznum); 54 ssize_t curlx_uztosz(size_t uznum); 56 size_t curlx_sotouz(curl_off_t sonum); 62 size_t curlx_sitouz(int sinum); 66 ssize_t curlx_read(int fd, void *buf, size_t count); 68 ssize_t curlx_write(int fd, const void *buf, size_t count);
|
H A D | bufq.c | 94 static size_t chunk_unwrite(struct buf_chunk *chunk, size_t len) in chunk_unwrite() 151 static size_t chunk_skip(struct buf_chunk *chunk, size_t amount) in chunk_skip() 177 size_t chunk_size, size_t spare_max) in Curl_bufcp_init() 231 size_t chunk_size, size_t max_chunks, int opts) in bufq_init() 282 size_t len = 0; in Curl_bufq_len() 292 size_t space = 0; in Curl_bufq_space() 453 size_t n; in Curl_bufq_write() 504 size_t n; in Curl_bufq_read() 552 size_t clen; in Curl_bufq_peek_at() 573 size_t n; in Curl_bufq_skip() [all …]
|
H A D | base64.c | 79 size_t srclen = 0; in Curl_base64_decode() 80 size_t padding = 0; in Curl_base64_decode() 81 size_t i; in Curl_base64_decode() 82 size_t numQuantums; in Curl_base64_decode() 83 size_t fullQuantums; in Curl_base64_decode() 84 size_t rawlen = 0; in Curl_base64_decode() 153 size_t padc = 0; in Curl_base64_decode() 190 char **outptr, size_t *outlen) in base64_encode() 246 *outlen = (size_t)(output - base64data); in base64_encode() 267 char **outptr, size_t *outlen) in Curl_base64_encode() [all …]
|
H A D | dynhds.c | 107 size_t i; in Curl_dynhds_free() 121 size_t i; in Curl_dynhds_reset() 150 size_t i; in Curl_dynhds_get() 222 size_t namelen; in Curl_dynhds_h1_add_line() 224 size_t valuelen, i; in Curl_dynhds_h1_add_line() 295 size_t n = 0; in Curl_dynhds_count_name() 297 size_t i; in Curl_dynhds_count_name() 323 size_t n = 0; in Curl_dynhds_remove() 325 size_t i, len; in Curl_dynhds_remove() 356 size_t i; in Curl_dynhds_h1_dprint() [all …]
|
H A D | escape.c | 61 size_t length; in curl_easy_escape() 68 length = (inlength ? (size_t)inlength : strlen(string)); in curl_easy_escape() 123 CURLcode Curl_urldecode(const char *string, size_t length, in Curl_urldecode() 124 char **ostring, size_t *olen, in Curl_urldecode() 127 size_t alloc; in Curl_urldecode() 187 size_t inputlen = (size_t)length; in curl_easy_unescape() 188 size_t outputlen; in curl_easy_unescape() 195 if(outputlen <= (size_t) INT_MAX) in curl_easy_unescape() 219 void Curl_hexencode(const unsigned char *src, size_t len, /* input length */ in Curl_hexencode() 220 unsigned char *out, size_t olen) /* output buffer size */ in Curl_hexencode()
|
H A D | http.h | 60 size_t delta, 75 const size_t thislen); 105 const char *hd, size_t hdlen); 134 const char *buf, size_t blen, 137 const char *hd, size_t hdlen, 193 const char *buf, size_t blen, 194 size_t *pconsumed); 241 const char *method, size_t m_len, 242 const char *scheme, size_t s_len, 244 const char *path, size_t p_len); [all …]
|
H A D | escape.h | 37 CURLcode Curl_urldecode(const char *string, size_t length, 38 char **ostring, size_t *olen, 41 void Curl_hexencode(const unsigned char *src, size_t len, /* input length */ 42 unsigned char *out, size_t olen); /* output buffer size */
|
H A D | curl_base64.h | 35 CURLcode Curl_base64_encode(const char *inputbuff, size_t insize, 36 char **outptr, size_t *outlen); 37 CURLcode Curl_base64url_encode(const char *inputbuff, size_t insize, 38 char **outptr, size_t *outlen); 40 unsigned char **outptr, size_t *outlen);
|
H A D | http1.h | 41 size_t scratch_skip; 43 size_t max_line_len; 44 size_t line_len; 48 void Curl_h1_req_parse_init(struct h1_req_parser *parser, size_t max_line_len); 52 const char *buf, size_t buflen,
|
/curl/include/curl/ |
H A D | stdcheaders.h | 29 size_t fread(void *, size_t, size_t, FILE *); 30 size_t fwrite(const void *, size_t, size_t, FILE *); 33 int strncasecmp(const char *, const char *, size_t);
|
H A D | typecheck-gcc.h | 553 typedef size_t (*_curl_read_callback1)(char *, size_t, size_t, void *); 554 typedef size_t (*_curl_read_callback2)(char *, size_t, size_t, const void *); 555 typedef size_t (*_curl_read_callback3)(char *, size_t, size_t, FILE *); 556 typedef size_t (*_curl_read_callback4)(void *, size_t, size_t, void *); 557 typedef size_t (*_curl_read_callback5)(void *, size_t, size_t, const void *); 558 typedef size_t (*_curl_read_callback6)(void *, size_t, size_t, FILE *); 571 typedef size_t (*_curl_write_callback1)(const char *, size_t, size_t, void *); 572 typedef size_t (*_curl_write_callback2)(const char *, size_t, size_t, 574 typedef size_t (*_curl_write_callback3)(const char *, size_t, size_t, FILE *); 575 typedef size_t (*_curl_write_callback4)(const void *, size_t, size_t, void *); [all …]
|
H A D | websockets.h | 36 size_t len; /* size of the current data chunk */ 55 CURL_EXTERN CURLcode curl_ws_recv(CURL *curl, void *buffer, size_t buflen, 56 size_t *recv, 71 size_t buflen, size_t *sent,
|
/curl/tests/libtest/ |
H A D | lib1509.c | 30 size_t WriteOutput(char *ptr, size_t size, size_t nmemb, void *stream); 31 size_t WriteHeader(char *ptr, size_t size, size_t nmemb, void *stream); 85 size_t WriteOutput(char *ptr, size_t size, size_t nmemb, void *stream) in WriteOutput() 91 size_t WriteHeader(char *ptr, size_t size, size_t nmemb, void *stream) in WriteHeader()
|
H A D | lib552.c | 39 FILE *stream, unsigned char *ptr, size_t size, in dump() 42 size_t i; in dump() 43 size_t c; in dump() 89 char *data, size_t size, in my_trace() 127 static size_t current_offset = 0; 131 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *stream) in read_callback() 133 size_t amount = nmemb * size; /* Total bytes curl wants */ in read_callback() 134 size_t available = sizeof(databuf) - current_offset; /* What we have to in read_callback() 136 size_t given = amount < available ? amount : available; /* What is given */ in read_callback() 144 static size_t write_callback(char *ptr, size_t size, size_t nmemb, in write_callback() [all …]
|
H A D | lib1485.c | 33 size_t hd_line; 38 static size_t header_callback(char *ptr, size_t size, size_t nmemb, in header_callback() 43 size_t len = size * nmemb; in header_callback() 80 static size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userp) in write_callback() 83 size_t len = size * nmemb; in write_callback()
|
/curl/lib/vquic/ |
H A D | vquic_int.h | 46 size_t gsolen; /* length of individual packets in send buf */ 47 size_t split_len; /* if != 0, buffer length after which GSO differs */ 48 size_t split_gsolen; /* length of individual packets after split_len */ 63 const uint8_t *pkt, size_t pktlen, size_t gsolen); 70 struct cf_quic_ctx *qctx, size_t gsolen); 73 struct cf_quic_ctx *qctx, size_t gsolen, 74 size_t tail_len, size_t tail_gsolen); 80 typedef CURLcode vquic_recv_pkt_cb(const unsigned char *pkt, size_t pktlen, 88 size_t max_pkts,
|
/curl/lib/vtls/ |
H A D | hostcheck.c | 49 static bool pmatch(const char *hostname, size_t hostlen, in pmatch() 50 const char *pattern, size_t patternlen) in pmatch() 82 size_t hostlen, in hostmatch() 84 size_t patternlen) in hostmatch() 115 size_t skiphost = hostname_label_end - hostname; in hostmatch() 116 size_t skiplen = pattern_label_end - pattern; in hostmatch() 127 bool Curl_cert_hostcheck(const char *match, size_t matchlen, in Curl_cert_hostcheck() 128 const char *hostname, size_t hostlen) in Curl_cert_hostcheck()
|
H A D | vtls_int.h | 51 size_t count; /* number of entries */ 68 size_t proto_len); 139 size_t sizeof_ssl_backend_data; 144 size_t (*version)(char *buffer, size_t size); 153 size_t length); 175 CURLcode (*sha256sum)(const unsigned char *input, size_t inputlen, 176 unsigned char *sha256sum, size_t sha256sumlen); 182 char *buf, size_t len, CURLcode *code); 184 const void *mem, size_t len, CURLcode *code); 233 size_t *idsize, /* set 0 if unknown */ [all …]
|
/curl/docs/examples/ |
H A D | ftpuploadresume.c | 34 static size_t getcontentlengthfunc(void *ptr, size_t size, size_t nmemb, in getcontentlengthfunc() 48 static size_t discardfunc(void *ptr, size_t size, size_t nmemb, void *stream) in discardfunc() 56 static size_t readfunc(char *ptr, size_t size, size_t nmemb, void *stream) in readfunc() 59 size_t n; in readfunc()
|
H A D | imap-append.c | 59 size_t bytes_read; 62 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() 66 size_t room = size * nmemb; in payload_source() 75 size_t len = strlen(data); in payload_source() 94 size_t filesize; in main()
|
/curl/tests/unit/ |
H A D | unit2601.c | 65 size_t n; in dump_bufq() 92 size_t chunk_size, size_t max_chunks, in check_bufq() 93 size_t wsize, size_t rsize, int opts) in check_bufq() 100 size_t nwritten, nread; in check_bufq() 128 nwritten += (size_t)n; in check_bufq() 147 nread += (size_t)n; in check_bufq() 184 if(n < 0 || (size_t)n != wsize) { in check_bufq() 188 nwritten += (size_t)n; in check_bufq() 199 nwritten += (size_t)n; in check_bufq() 208 nread += (size_t)n; in check_bufq() [all …]
|