Clear input buffer, discarding all that is in the buffer.
(self)
| 174 | return len(data) |
| 175 | |
| 176 | def flushInput(self): |
| 177 | """Clear input buffer, discarding all that is in the buffer.""" |
| 178 | if not self.sPort: raise portNotOpenError |
| 179 | self._instream.skip(self._instream.available()) |
| 180 | |
| 181 | def flushOutput(self): |
| 182 | """Clear output buffer, aborting the current output and |