class Compress::Zlib::Reader
inherits IO
¶
A read-only IO
object to decompress data in the zlib format.
Instances of this class wrap another IO object. When you read from this instance instance, it reads data from the underlying IO, decompresses it, and returns it to the caller.
Included modules
IO::Buffered
Class methods¶
.open(io : IO, sync_close = false, dict : Bytes? = nil
¶
(io : IO, sync_close = false, dict : Bytes? = nil
Creates a new reader from the given io, yields it to the given block, and closes it at the end.
.new(io : IO, sync_close = false, dict : Bytes? = nil)
¶
(io : IO, sync_close = false, dict : Bytes? = nil)
Creates a new reader from the given io.
Methods¶
#unbuffered_write(slice : Bytes)
¶
View source
(slice : Bytes)