(self, pos=None)
| 1264 | return written |
| 1265 | |
| 1266 | def truncate(self, pos=None): |
| 1267 | with self._write_lock: |
| 1268 | self._flush_unlocked() |
| 1269 | if pos is None: |
| 1270 | pos = self.raw.tell() |
| 1271 | return self.raw.truncate(pos) |
| 1272 | |
| 1273 | def flush(self): |
| 1274 | with self._write_lock: |
nothing calls this directly
no test coverage detected