| 308 | |
| 309 | |
| 310 | class SysCapture(SysCaptureBinary): |
| 311 | EMPTY_BUFFER = "" # type: ignore[assignment] |
| 312 | |
| 313 | def snap(self): |
| 314 | res = self.tmpfile.getvalue() |
| 315 | self.tmpfile.seek(0) |
| 316 | self.tmpfile.truncate() |
| 317 | return res |
| 318 | |
| 319 | def writeorg(self, data): |
| 320 | self._assert_state("writeorg", ("started", "suspended")) |
| 321 | self._old.write(data) |
| 322 | self._old.flush() |
| 323 | |
| 324 | |
| 325 | class FDCaptureBinary: |
no outgoing calls
no test coverage detected