Home
last modified time | relevance | path

Searched refs:realsize (Results 1 – 12 of 12) sorted by relevance

/curl/docs/examples/
H A Dgetinmemory.c44 size_t realsize = size * nmemb; in WriteMemoryCallback() local
47 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in WriteMemoryCallback()
55 memcpy(&(mem->memory[mem->size]), contents, realsize); in WriteMemoryCallback()
56 mem->size += realsize; in WriteMemoryCallback()
59 return realsize; in WriteMemoryCallback()
H A Dpostinmemory.c41 size_t realsize = size * nmemb; in WriteMemoryCallback() local
44 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in WriteMemoryCallback()
52 memcpy(&(mem->memory[mem->size]), contents, realsize); in WriteMemoryCallback()
53 mem->size += realsize; in WriteMemoryCallback()
56 return realsize; in WriteMemoryCallback()
H A Dhttp2-pushinmemory.c43 size_t realsize = size * nmemb; in write_cb() local
45 char *ptr = realloc(mem->memory, mem->size + realsize + 1); in write_cb()
53 memcpy(&(mem->memory[mem->size]), contents, realsize); in write_cb()
54 mem->size += realsize; in write_cb()
57 return realsize; in write_cb()
H A Dhref_extractor.c42 size_t realsize = size * nmemb, p; in write_callback() local
43 for(p = 0; p < realsize; p++) { in write_callback()
52 return realsize; in write_callback()
H A Dcrawler.c64 size_t realsize = sz * nmemb; in grow_buffer() local
66 char *ptr = realloc(mem->buf, mem->size + realsize); in grow_buffer()
73 memcpy(&(mem->buf[mem->size]), contents, realsize); in grow_buffer()
74 mem->size += realsize; in grow_buffer()
75 return realsize; in grow_buffer()
H A Dghiper.c277 size_t realsize = size * nmemb; in write_cb() local
281 return realsize; in write_cb()
H A Devhiperfifo.c313 size_t realsize = size * nmemb; in write_cb() local
317 return realsize; in write_cb()
/curl/tests/libtest/
H A Dlib3207.c53 size_t realsize = size * nmemb; in write_memory_callback() local
55 char *data = (char *)malloc(realsize + 1); in write_memory_callback()
61 memcpy(data, contents, realsize); in write_memory_callback()
62 data[realsize] = '\0'; in write_memory_callback()
72 return realsize; in write_memory_callback()
/curl/docs/libcurl/opts/
H A DCURLOPT_WRITEFUNCTION.md93 size_t realsize = size * nmemb;
96 char *ptr = realloc(mem->response, mem->size + realsize + 1);
101 memcpy(&(mem->response[mem->size]), data, realsize);
102 mem->size += realsize;
105 return realsize;
/curl/tests/http/clients/
H A Dh2-pausing.c172 size_t realsize = size * nmemb; in cb() local
185 handle->idx, handle->paused, (long)realsize); in cb()
192 handle->idx, (long)realsize, handle->errored); in cb()
196 handle->idx, (long)realsize); in cb()
197 return realsize; in cb()
/curl/lib/
H A Ddoh.c185 size_t realsize = size * nmemb; in doh_write_cb() local
188 if(Curl_dyn_addn(mem, contents, realsize)) in doh_write_cb()
191 return realsize; in doh_write_cb()
/curl/docs/
H A DFAQ1157 size_t realsize = size * nmemb;
1160 mem->memory = (char *)realloc(mem->memory, mem->size + realsize + 1);
1162 memcpy(&(mem->memory[mem->size]), ptr, realsize);
1163 mem->size += realsize;
1166 return realsize;

Completed in 26 milliseconds