Bug 2496 – zlib stream class

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-12-06T13:43:00Z
Last change time
2017-07-05T21:17:50Z
Keywords
bootcamp
Assigned to
nobody
Creator
jlquinn

Comments

Comment #0 by jlquinn — 2008-12-06T13:43:38Z
It would be useful to have streams that can read or write compressed files, preferably transparently. I.e. a ZlibInputStream could read either compressed or uncompressed data without the user having to know which it is.
Comment #1 by andrei — 2016-10-14T01:03:44Z
I'm putting this for bootcamp, although it's a large-ish project.
Comment #2 by dlang-bugzilla — 2017-07-05T21:17:50Z
Chunk-wise compression has been in std.zlib from the beginning, so I guess thin issue is about adapting it to a certain common interface. std.stream is gone, though, so what would be today's solution? Range of bytes (grossly inefficient)? Range of ranges of bytes? I think IOPipe is the way forward here, and it already implements ZLib compression/decompression. Please reopen if you have a specific proposal.