Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Package::TarReader::Entry#readpartial
readpartial(maxlen, outbuf = "".b)
lib/rubygems/package/tar_reader/entry.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/package/tar_reader/entry.rb, line 175
def readpartial(maxlen, outbuf = "".b)
if eof? && maxlen > 0
raise EOFError, "end of file reached"
end
max_read = [maxlen, @header.size - @read].min
@io.readpartial(max_read, outbuf)
@read += outbuf.size
outbuf
end
No documentation available