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

Method write_to_fd

tornado/iostream.py:1591–1597  ·  view source on GitHub ↗
(self, data: memoryview)

Source from the content-addressed store, hash-verified

1589 self._fio.close()
1590
1591 def write_to_fd(self, data: memoryview) -> int:
1592 try:
1593 return os.write(self.fd, data) # type: ignore
1594 finally:
1595 # Avoid keeping to data, which can be a memoryview.
1596 # See https://github.com/tornadoweb/tornado/pull/2008
1597 del data
1598
1599 def read_from_fd(self, buf: Union[bytearray, memoryview]) -> Optional[int]:
1600 try:

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected