def readinto(self, buff):
data = self.read(len(buff))<EOL>buff[: len(data)] = data<EOL>return len(data)<EOL>
Read up to ``len(buff)`` bytes into ``bytearray`` *buff* and return the
number of bytes read.

:returns:
    The number of bytes read.