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)
| 889 | return bytes_read |
| 890 | |
| 891 | def _read_from_buffer(self, pos: int) -> None: |
| 892 | """Attempts to complete the currently-pending read from the buffer. |
| 893 | |
| 894 | The argument is either a position in the read buffer or None, |
| 895 | as returned by _find_read_pos. |
| 896 | """ |
| 897 | self._read_bytes = self._read_delimiter = self._read_regex = None |
| 898 | self._read_partial = False |
| 899 | self._finish_read(pos) |
| 900 | |
| 901 | def _find_read_pos(self) -> Optional[int]: |
| 902 | """Attempts to find a position in the read buffer that satisfies |
no test coverage detected