(self)
| 430 | EMPTY_BUFFER = b"" |
| 431 | |
| 432 | def snap(self) -> bytes: |
| 433 | self._assert_state("snap", ("started", "suspended")) |
| 434 | self.tmpfile.seek(0) |
| 435 | res = self.tmpfile.buffer.read() |
| 436 | self.tmpfile.seek(0) |
| 437 | self.tmpfile.truncate() |
| 438 | return res |
| 439 | |
| 440 | def writeorg(self, data: bytes) -> None: |
| 441 | self._assert_state("writeorg", ("started", "suspended")) |
nothing calls this directly
no test coverage detected