MCPcopy Create free account
hub / github.com/EasyIME/PIME / _read_from_buffer

Method _read_from_buffer

python/python3/tornado/iostream.py:899–907  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

closeMethod · 0.95
_handle_readMethod · 0.95
_try_inline_readMethod · 0.95

Calls 1

_finish_readMethod · 0.95

Tested by

no test coverage detected