Read up to size bytes from the object and return them. As a convenience, if size is unspecified or -1, all bytes until EOF are returned.
io/RawIOBase.read
RawIOBase.read