Lines Matching defs:bufsize
133 * and 'bufsize' pointers to avoid multiple buffer allocations. Buffer
134 * will be reallocated and 'bufsize' increased until whole line fits in
145 static int readline(char **buffer, size_t *bufsize, size_t *length,
155 *bufsize = 128;
159 int bytestoread = curlx_uztosi(*bufsize - offset);
168 if(*length < *bufsize - 1)
171 newptr = realloc(*buffer, *bufsize * 2);
174 memset(&newptr[*bufsize], 0, *bufsize);
176 *bufsize *= 2;
324 size_t bufsize = 0;
348 while((error = readline(&buffer, &bufsize, &datalen, stream)) == GPE_OK) {