Bug 8779 – std.zlib.UnCompress needs a way to detect end-of-stream
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-08T02:24:53Z
Last change time
2017-10-16T09:57:52Z
Assigned to
No Owner
Creator
Sönke Ludwig
Comments
Comment #0 by sludwig — 2012-10-08T02:24:53Z
The return value of the inflate() call is currently not distinguished between Z_OK and Z_STREAM_END. However, this information is necessary if the size of the inflated stream is unknown. UnCompress either needs to return a status with each uncompress() call, or, probably better, get an empty() property that is set accordingly.
Comment #1 by github-bugzilla — 2017-09-14T16:53:00Z