curl-library
Avoid copying data in CURLOPT_WRITEFUNCTION callback
From: Konstantin Miller <konstantin.miller_at_googlemail.com>
Date: Mon, 13 Feb 2012 10:36:04 +0100
Date: Mon, 13 Feb 2012 10:36:04 +0100
Hi!
Is there any way to avoid copying data between the buffer that is passed to
the callback function, which is set with CURLOPT_WRITEFUNCTION, and my own
buffer? Can I tell libcurl that I would like to reuse its buffer and that I
will free it myself later on? Or, even better, that I will give it back to
libcurl once I'm done with it?
Best,
Konstantin
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-13