This is the API documentation for readbytes: Ruby Standard Library Documentation.
CIO
CTruncatedDataError
#readbytes (IO)