Clear input buffer, discarding all that is in the buffer.
(self)
| 180 | return len(data) |
| 181 | |
| 182 | def flushInput(self): |
| 183 | """Clear input buffer, discarding all that is in the buffer.""" |
| 184 | if not self._port_handle: raise portNotOpenError |
| 185 | self._port_handle.DiscardInBuffer() |
| 186 | |
| 187 | def flushOutput(self): |
| 188 | """Clear output buffer, aborting the current output and |