method

readpartial

readpartial(maxlen, buf=nil)
public

Reads at most maxlen bytes from the stream. If buf is provided it must reference a string which will receive the data.

See IO#readpartial for full details.