Lines Matching refs:realsize
530 size_t realsize = size * nmemb;
594 return realsize;
602 for(i=pos; i<realsize && ' '!=line[i]; ++i);
603 if(i == realsize)
610 for(i=pos; i<realsize && ' '!=line[i] && '\r'!=line[i] && '\n'!=line[i]; ++i);
615 if(i<realsize && '\r'!=line[i] && '\n'!=line[i])
619 for(i=pos; i<realsize && '\r'!=line[i] && '\n'!=line[i]; ++i);
624 return realsize;
629 for(i=pos; i<realsize && ':'!=line[i] && '\r'!=line[i] && '\n'!=line[i]; ++i)
640 return realsize;
642 if(i == realsize || '\r'==line[i] || '\n'==line[i])
647 return realsize;
652 while(pos<realsize && isspace(line[pos])) ++pos; //remove leading space
653 for(i=pos; i<realsize && '\r'!=line[i] && '\n'!=line[i]; ++i);
678 return realsize;
685 size_t realsize = size * nmemb;
688 //printf("curl_write_cb %i\n", realsize);
697 if(!store_in_buffer(contents, realsize, &proxy->http_body, &proxy->http_body_size))
705 proxy->http_body = malloc(realsize);
707 proxy->http_body = realloc(proxy->http_body, proxy->http_body_size + realsize);
714 memcpy(proxy->http_body + proxy->http_body_size, contents, realsize);
715 proxy->http_body_size += realsize;
718 PRINT_VERBOSE2("received bytes from curl: %zu", realsize);
722 return realsize;