class Zlib::GzipReader

Public Instance Methods

readpartial(size, out=nil) click to toggle source

@param [Fixnum] size @param [IO] out @return [String]

# File lib/td/client/compat_gzip_reader.rb, line 8
def readpartial(size, out=nil)
  o = read(size)
  if o
    if out
      out.replace(o)
      return out
    else
      return o
    end
  end
  raise EOFError, "end of file reached"
end