curl-library
RE: Avoid copying data in CURLOPT_WRITEFUNCTION callback
Date: Mon, 13 Feb 2012 16:33:48 +0100
On 13-02-2012 13:20, Daniel Stenberg wrote:
> On Mon, 13 Feb 2012, Yehezkel Horowitz wrote:
>
>> I think that 'CURLcode curl_allocate_buffer_cb(char** buff, int*
>> size)' which
>> will be called by curl with the requested buffer size - would be
>> easy to use API for this.
>
> Yes, I agree it could probably be in that spirit. The actual
> arguments would have to be worked on of course.
>
> The actual API to feed pre-allocated buffers into libcurl for this is
> probably the easier part of the work! :-)
A small step in.
Could the function
http://curl.haxx.se/libcurl/c/curl_global_init_mem.html
not be used to use the own mem buffer of functions?
ym2c
Cheers
Aleks
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-13