cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: max download/upload speed setting (libcurl, Delphi)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 6 Jul 2009 09:05:06 +0200 (CEST)

On Sun, 5 Jul 2009, Jeff Pohlmeyer wrote:

> DS> You (as in the app) should not have to figure
> DS> out what kind it is unless very rare cases.
>
> Pascal does not use C headers natively, so *someone* will have to figure out
> what it is.

Right. You do need how to convert to a curl_off_t type from a type that is
provided in the lang you write the binding for. Bindings written before the
_LARGE options will of course not do this correctly.

In general I think you can basically do sizeof() on the type and then decide
if a a 32bit or a 64bit representation is needed.

-- 
  / daniel.haxx.se
Received on 2009-07-06