Read bytes into a pre-allocated bytes-like object b. Returns an int representing the number of bytes read (0 for EOF), or None if the object is set not to block and has no data to read.
(self, b)
| 634 | return data |
| 635 | |
| 636 | def readinto(self, b): |
| 637 | """Read bytes into a pre-allocated bytes-like object b. |
| 638 | |
| 639 | Returns an int representing the number of bytes read (0 for EOF), or |
| 640 | None if the object is set not to block and has no data to read. |
| 641 | """ |
| 642 | self._unsupported("readinto") |
| 643 | |
| 644 | def write(self, b): |
| 645 | """Write the given buffer to the IO stream. |