datanoise / zlib.cr

zlib binding for Crystal language
MIT License
9 stars 2 forks source link

Zlib::GzipReader, Zlib::GzipWriter #1

Open bararchy opened 9 years ago

bararchy commented 9 years ago

Hi,

Any plan to add those two ?

asterite commented 9 years ago

@bararchy I believe GZFile is what you are looking for. It's an IO and allows both read and write.

datanoise commented 9 years ago

GZFile only works with actual files. It would be nice to have GzipReader/GzipWriter like they are defined in Ruby, which work on top of any IO. I'll see if I have time to implement it or will just wait for PR :)