Flushes the buffer and returns its contents.
(self)
| 55 | return not self.events |
| 56 | |
| 57 | def flush_buf(self) -> bytearray: |
| 58 | """ |
| 59 | Flushes the buffer and returns its contents. |
| 60 | """ |
| 61 | old = self.buf |
| 62 | self.buf = bytearray() |
| 63 | return old |
| 64 | |
| 65 | def insert(self, event: Event) -> None: |
| 66 | """ |
no outgoing calls