std.zip size limit of 2 GB?

Steven Schveighoffer schveiguy at yahoo.com
Fri Feb 16 22:42:58 UTC 2018


On 2/16/18 5:39 PM, Ali Çehreli wrote:
> On 02/15/2018 01:57 PM, Steven Schveighoffer wrote:
> 
>  > Really, i should be size_t in all places
> 
> size_t or ulong? size_t would constrain 32-bit systems unless they can't 
> handle files over 2G.

The code I linked to writes to an array. So it's constrained to size_t.

I think the zlib library itself doesn't support very well anything more 
than 4GB files.

-Steve


More information about the Digitalmars-d-learn mailing list