class Compress::Deflate::Reader
inherits IO
¶
A read-only IO
object to decompress data in the DEFLATE 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¶
.gzip(input, sync_close : Bool = false
¶
(input, sync_close : Bool = false
Creates an instance of Flate::Reader for the gzip format, yields it to the given block, and closes it at its end.
.open(io : IO, sync_close : Bool = false, dict : Bytes? = nil
¶
(io : IO, sync_close : Bool = false, dict : Bytes? = nil
Creates a new reader from the given io, yields it to the given block, and closes it at its end.
.gzip(input, sync_close : Bool = false) : self
¶
(input, sync_close : Bool = false) : self
Creates an instance of Flate::Reader for the gzip format. has written.
.new(io : IO, sync_close : Bool = false, dict : Bytes? = nil)
¶
(io : IO, sync_close : Bool = false, dict : Bytes? = nil)
Creates an instance of Flate::Reader.
Methods¶
#sync_close=(sync_close : Bool)
¶
(sync_close : Bool)
If #sync_close?
is true
, closing this IO will close the underlying IO.
#sync_close? : Bool
¶
: Bool
If #sync_close?
is true
, closing this IO will close the underlying IO.
#unbuffered_write(slice : Bytes)
¶
View source
(slice : Bytes)