Read bytes into b, while trying to avoid making multiple reads from the underlying stream. Returns the number of bytes read (0 for EOF).
(self, b)
| 196 | return self._buffer.readinto(b) |
| 197 | |
| 198 | def readinto1(self, b): |
| 199 | """Read bytes into b, while trying to avoid making multiple reads |
| 200 | from the underlying stream. |
| 201 | |
| 202 | Returns the number of bytes read (0 for EOF). |
| 203 | """ |
| 204 | self._check_can_read() |
| 205 | return self._buffer.readinto1(b) |
| 206 | |
| 207 | def readline(self, size=-1): |
| 208 | """Read a line of uncompressed bytes from the file. |