Attempts to complete the currently-pending read from the buffer. The argument is either a position in the read buffer or None, as returned by _find_read_pos.
(self, pos: int)
| 897 | return bytes_read |
| 898 | |
| 899 | def _read_from_buffer(self, pos: int) -> None: |
| 900 | """Attempts to complete the currently-pending read from the buffer. |
| 901 | |
| 902 | The argument is either a position in the read buffer or None, |
| 903 | as returned by _find_read_pos. |
| 904 | """ |
| 905 | self._read_bytes = self._read_delimiter = self._read_regex = None |
| 906 | self._read_partial = False |
| 907 | self._finish_read(pos) |
| 908 | |
| 909 | def _find_read_pos(self) -> Optional[int]: |
| 910 | """Attempts to find a position in the read buffer that satisfies |
no test coverage detected