MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / flushInput

Method flushInput

src/ext/makerbot_pyserial/serialjava.py:176–179  ·  view source on GitHub ↗

Clear input buffer, discarding all that is in the buffer.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

serialjava.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected