Home
last modified time | relevance | path

Searched refs:mem (Results 1 – 25 of 31) sorted by relevance

12

/curl/lib/
H A Dmemdebug.c46 } mem[1]; member
154 mem ? (void *)mem->mem : (void *)0); in curl_dbg_malloc()
156 return (mem ? mem->mem : NULL); in curl_dbg_malloc()
176 if(mem) in curl_dbg_calloc()
182 mem ? (void *)mem->mem : (void *)0); in curl_dbg_calloc()
184 return (mem ? mem->mem : NULL); in curl_dbg_calloc()
201 if(mem) in curl_dbg_strdup()
227 if(mem) in curl_dbg_wcsdup()
265 mem = (Curl_crealloc)(mem, size); in curl_dbg_realloc()
269 mem ? (void *)mem->mem : (void *)0); in curl_dbg_realloc()
[all …]
H A Dftplistparser.c391 char *mem; in Curl_ftp_parselist() local
415 mem = Curl_dyn_ptr(&infop->buf); in Curl_ftp_parselist()
441 mem[parser->item_length - 1] = 0; in Curl_ftp_parselist()
442 if(!strncmp("total ", mem, 6)) { in Curl_ftp_parselist()
443 char *endptr = mem + 6; in Curl_ftp_parselist()
513 mem[10] = 0; /* terminate permissions */ in Curl_ftp_parselist()
549 hlinks = strtol(mem + parser->item_offset, &p, 10); in Curl_ftp_parselist()
631 if(!curlx_strtoofft(mem + parser->item_offset, in Curl_ftp_parselist()
956 if(curlx_strtoofft(mem + in Curl_ftp_parselist()
987 mem[len - 1] = 0; in Curl_ftp_parselist()
[all …]
H A Ddynbuf.c68 const unsigned char *mem, size_t len) in dyn_nappend() argument
80 DEBUGASSERT(!len || mem); in dyn_nappend()
117 memcpy(&s->bufr[indx], mem, len); in dyn_nappend()
165 CURLcode Curl_dyn_addn(struct dynbuf *s, const void *mem, size_t len) in Curl_dyn_addn() argument
170 return dyn_nappend(s, mem, len); in Curl_dyn_addn()
H A Dws.h77 CURLcode Curl_ws_accept(struct Curl_easy *data, const char *mem, size_t len);
H A Ddynbuf.h59 CURLcode Curl_dyn_addn(struct dynbuf *s, const void *mem, size_t len)
H A Dcf-h2-proxy.c280 nghttp2_mem mem = {NULL, Curl_nghttp2_malloc, Curl_nghttp2_free, in proxy_h2_client_new() local
294 rc = nghttp2_session_client_new3(&ctx->h2, cbs, cf, o, &mem); in proxy_h2_client_new()
321 const uint8_t *mem, size_t len, void *userp);
850 const uint8_t *mem, size_t len, void *userp) in tunnel_recv_callback() argument
864 nwritten = Curl_bufq_write(&ctx->tunnel.recvbuf, mem, len, &result); in tunnel_recv_callback()
H A Dhttp2.c436 nghttp2_mem mem = {NULL, Curl_nghttp2_malloc, Curl_nghttp2_free, in h2_client_new() local
450 rc = nghttp2_session_client_new3(&ctx->h2, cbs, cf, o, &mem); in h2_client_new()
483 const uint8_t *mem, size_t length, int flags,
493 const uint8_t *mem, size_t len, void *userp);
1379 const uint8_t *mem, size_t len, void *userp) in on_data_chunk_recv() argument
1407 h2_xfer_write_resp(cf, data_s, stream, (char *)mem, len, FALSE); in on_data_chunk_recv()
2904 const char *mem, size_t nread) in Curl_http2_upgrade() argument
2928 (const unsigned char *)mem, nread, &result); in Curl_http2_upgrade()
H A Dws.c753 const char *mem, size_t nread) in Curl_ws_accept() argument
837 nwritten = Curl_bufq_write(&ws->recvbuf, (const unsigned char *)mem, in Curl_ws_accept()
846 result = Curl_client_write(data, CLIENTWRITE_BODY, (char *)mem, nread); in Curl_ws_accept()
H A Dcfilters.c264 const void *mem, size_t len, bool eos, in Curl_cf_send() argument
277 ssize_t nwritten = cf->cft->do_send(cf, data, mem, len, eos, code); in Curl_cf_send()
H A Ddoh.c186 struct dynbuf *mem = (struct dynbuf *)userp; in doh_write_cb() local
188 if(Curl_dyn_addn(mem, contents, realsize)) in doh_write_cb()
/curl/docs/examples/
H A Dgetinmemory.c45 struct MemoryStruct *mem = (struct MemoryStruct *)userp; in WriteMemoryCallback() local
47 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in WriteMemoryCallback()
54 mem->memory = ptr; in WriteMemoryCallback()
55 memcpy(&(mem->memory[mem->size]), contents, realsize); in WriteMemoryCallback()
56 mem->size += realsize; in WriteMemoryCallback()
57 mem->memory[mem->size] = 0; in WriteMemoryCallback()
H A Dcrawler.c65 memory *mem = (memory*) ctx; in grow_buffer() local
66 char *ptr = realloc(mem->buf, mem->size + realsize); in grow_buffer()
72 mem->buf = ptr; 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()
89 mem->buf = malloc(1); in make_handle()
124 htmlDocPtr doc = htmlReadMemory(mem->buf, mem->size, url, NULL, opts); in follow_links()
201 memory *mem; in main() local
227 free(mem->buf); in main()
[all …]
H A Dpostinmemory.c42 struct MemoryStruct *mem = (struct MemoryStruct *)userp; in WriteMemoryCallback() local
44 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in WriteMemoryCallback()
51 mem->memory = ptr; in WriteMemoryCallback()
52 memcpy(&(mem->memory[mem->size]), contents, realsize); in WriteMemoryCallback()
53 mem->size += realsize; in WriteMemoryCallback()
54 mem->memory[mem->size] = 0; in WriteMemoryCallback()
H A Dxmlstream.c71 struct MemoryStruct *mem = &state->characters; in characterDataHandler() local
73 char *ptr = realloc(mem->memory, mem->size + len + 1); in characterDataHandler()
81 mem->memory = ptr; in characterDataHandler()
82 memcpy(&(mem->memory[mem->size]), s, len); in characterDataHandler()
83 mem->size += len; in characterDataHandler()
84 mem->memory[mem->size] = 0; in characterDataHandler()
H A Dhttp2-pushinmemory.c44 struct Memory *mem = (struct Memory *)userp; in write_cb() local
45 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in write_cb()
52 mem->memory = ptr; in write_cb()
53 memcpy(&(mem->memory[mem->size]), contents, realsize); in write_cb()
54 mem->size += realsize; in write_cb()
55 mem->memory[mem->size] = 0; in write_cb()
/curl/docs/libcurl/opts/
H A DCURLOPT_WRITEFUNCTION.md94 struct memory *mem = (struct memory *)clientp;
96 char *ptr = realloc(mem->response, mem->size + realsize + 1);
100 mem->response = ptr;
101 memcpy(&(mem->response[mem->size]), data, realsize);
102 mem->size += realsize;
103 mem->response[mem->size] = 0;
/curl/lib/vtls/
H A Dopenssl.c329 (void)BIO_reset(mem); in push_certinfo()
345 BN_print(mem, bn); in pubkey_show()
422 BIO *mem; in ossl_certchain() local
438 if(!mem) in ossl_certchain()
465 BIO_puts(mem, "-"); in ossl_certchain()
676 BIO_free(mem); in ossl_certchain()
4541 if(!mem) {
4556 BIO_free(mem);
4577 (void)BIO_reset(mem);
4582 (void)BIO_reset(mem);
[all …]
H A Dvtls_int.h184 const void *mem, size_t len, CURLcode *code);
/curl/tests/libtest/
H A Dlib3207.c54 struct Ctx *mem = (struct Ctx *)userp; in write_memory_callback() local
63 item_append = curl_slist_append(mem->contents, data); in write_memory_callback()
66 mem->contents = item_append; in write_memory_callback()
/curl/lib/vssh/
H A Dwolfssh.c221 const void *mem, size_t len, bool eos, in wscp_send() argument
227 (void)mem; in wscp_send()
236 char *mem, size_t len, CURLcode *err) in wscp_recv() argument
241 (void)mem; in wscp_recv()
250 const void *mem, size_t len, bool eos, CURLcode *err) in wsftp_send() argument
265 (byte *)mem, (word32)len); in wsftp_send()
295 char *mem, size_t len, CURLcode *err) in wsftp_recv() argument
309 (byte *)mem, (word32)len); in wsftp_recv()
H A Dlibssh.c2411 const void *mem, size_t len, bool eos, CURLcode *err) in scp_send() argument
2419 rc = ssh_scp_write(conn->proto.sshc.scp_session, mem, len); in scp_send()
2442 char *mem, size_t len, CURLcode *err) in scp_recv() argument
2450 nread = ssh_scp_read(conn->proto.sshc.scp_session, mem, len); in scp_recv()
2560 const void *mem, size_t len, bool eos, in sftp_send() argument
2574 nwrite = sftp_write(conn->proto.sshc.sftp_file, mem, len); in sftp_send()
2598 char *mem, size_t len, CURLcode *err) in sftp_recv() argument
2621 mem, (uint32_t)len, in sftp_recv()
H A Dlibssh2.c3504 const void *mem, size_t len, bool eos, CURLcode *err) in scp_send() argument
3513 nwrite = (ssize_t) libssh2_channel_write(sshc->ssh_channel, mem, len); in scp_send()
3530 char *mem, size_t len, CURLcode *err) in scp_recv() argument
3538 nread = (ssize_t) libssh2_channel_read(sshc->ssh_channel, mem, len); in scp_recv()
3643 const void *mem, size_t len, bool eos, CURLcode *err) in sftp_send() argument
3651 nwrite = libssh2_sftp_write(sshc->sftp_handle, mem, len); in sftp_send()
3672 char *mem, size_t len, CURLcode *err) in sftp_recv() argument
3679 nread = libssh2_sftp_read(sshc->sftp_handle, mem, len); in sftp_recv()
/curl/tests/http/testenv/
H A Dcurl.py84 mem = self._psu.memory_info()
88 'vsz': mem.vms,
89 'rss': mem.rss,
/curl/lib/vquic/
H A Dcurl_msh3.c351 const void *mem, size_t memlen) in write_resp_raw() argument
361 nwritten = Curl_bufq_write(&stream->recvbuf, mem, memlen, &result); in write_resp_raw()
/curl/docs/
H A DFAQ1158 struct MemoryStruct *mem = (struct MemoryStruct *)data;
1160 mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
1161 if (mem->memory) {
1162 memcpy(&(mem->memory[mem->size]), ptr, realsize);
1163 mem->size += realsize;
1164 mem->memory[mem->size] = 0;

Completed in 87 milliseconds

12