Skip to content
instance method

Zlib::GzipReader#readpartial

(::int maxlen, ?::string outbuf) -> ::String
gzipreader.readpartial(maxlen [, outbuf]) => string, outbuf

Reads at most maxlen bytes from the gzipped stream but it blocks only if gzipreader has no data immediately available. If the optional outbuf argument is present, it must reference a String, which will receive the data. It raises EOFError on end of file.

See also #readlines #rewind #readline #tell also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0