curl / Mailing Lists / curl-library / Single Mail

curl-library

getinfo: return sizes as curl_off_t

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Jun 2017 12:12:35 +0200 (CEST)

Hi friends!

I'm working on a patch[*] that brings a set of new options to
curl_easy_getinfo() to allow applications to extract size and transfer speed
operations using curl_off_t types instead of of doubles.

I'd like to see this done primarily for these reasons:

  - curl_off_t is more "natural" and less surprising for this kind of data
  - floating point is inexact and annoying for comparisons
  - curl_off_t can actually hold larger sizes

(Internally the data is already kept using curl_off_t)

Any thoughts, questions or comments on this?

[*] = https://github.com/curl/curl/pull/1511

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-06-16