(self, pos=None)
| 1283 | return written |
| 1284 | |
| 1285 | def truncate(self, pos=None): |
| 1286 | with self._write_lock: |
| 1287 | self._flush_unlocked() |
| 1288 | if pos is None: |
| 1289 | pos = self.raw.tell() |
| 1290 | return self.raw.truncate(pos) |
| 1291 | |
| 1292 | def flush(self): |
| 1293 | with self._write_lock: |
nothing calls this directly
no test coverage detected