Attempts to write ``data`` to the underlying file. Returns the number of bytes written.
(self, data: memoryview)
| 295 | raise NotImplementedError() |
| 296 | |
| 297 | def write_to_fd(self, data: memoryview) -> int: |
| 298 | """Attempts to write ``data`` to the underlying file. |
| 299 | |
| 300 | Returns the number of bytes written. |
| 301 | """ |
| 302 | raise NotImplementedError() |
| 303 | |
| 304 | def read_from_fd(self, buf: Union[bytearray, memoryview]) -> Optional[int]: |
| 305 | """Attempts to read from the underlying file. |