method

readpartial

readpartial(size, buf = ''.b)
public

for IO.copy_stream. Note: we may return a larger string than size here; but IO.copy_stream does not care.