curl-library
Re: CURLOPT_INFILESIZE vs CURLOPT_INFILESIZE_LARGE
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 7 May 2010 12:09:02 +0200 (CEST)
Date: Fri, 7 May 2010 12:09:02 +0200 (CEST)
On Fri, 7 May 2010, ALp wrote:
> My question is, what size does the data need to be for the application to
> use CURLOPT_INFILESIZE_LARGE? When does CURLOPT_INFILESIZE end and
> CURLOPT_INFILESIZE_LARGE begin? :) is there a constant or a def' that
> declares this boundary?
The simplest answer: always use CURLOPT_INFILESIZE_LARGE and pass in a
curl_off_t type.
If you really want to do it more complicated, then use CURLOPT_INFILESIZE as
long as you can fit the size in a signed 'long' and then switch to
CURLOPT_INFILESIZE_LARGE when it gets larger than so. But that's unnecessarily
complicated. Really.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-05-07