MCPcopy
hub / github.com/tornadoweb/tornado / _read_from_buffer

Method _read_from_buffer

tornado/iostream.py:891–899  ·  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

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

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