std.zlib odd behavior
Kagamin
spam at here.lot
Tue Mar 5 08:59:32 UTC 2019
On Tuesday, 5 March 2019 at 01:43:42 UTC, solidstate1991 wrote:
> https://github.com/ZILtoid1991/dimage/blob/master/source/dimage/png.d
>
> It seems that after a certain point, it doesn't add more data
> to the compression stream, flushing doesn't help.
What do you mean by "doesn't add"?
ubyte[] slice = pos < imageData.length ? imageData[pos..(pos +
pitch)] : imageData[pos..$];
This can't possibly work. You slice past the end of array.
More information about the Digitalmars-d-learn
mailing list