Flowdock
method

readpartial

Importance_0
v2_6_3 - Show latest stable - 0 notes - Class: Entry
readpartial(maxlen = nil, outbuf = "".b) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/package/tar_reader/entry.rb, line 145
  def readpartial(maxlen = nil, outbuf = "".b)
    check_closed

    raise EOFError if @read >= @header.size

    maxlen ||= @header.size - @read
    max_read = [maxlen, @header.size - @read].min

    @io.readpartial(max_read, outbuf)
    @read += outbuf.size

    outbuf
  end
Register or log in to add new notes.