MCPcopy Create free account
hub / github.com/apache/nuttx / readline

Method readline

tools/flash_writer.py:301–309  ·  view source on GitHub ↗
(self, size=None)

Source from the content-addressed store, hash-verified

299 sys.exit(e.args[0])
300
301 def readline(self, size=None):
302 res = b""
303 ch = b""
304 while ch != ConfigArgs.EOL:
305 ch = self.getc_raw(1, timeout=0.1)
306 if ch == b"":
307 return res
308 res += ch
309 return res
310
311 def getc_raw(self, size, timeout=1):
312 res = b""

Callers 7

multi_thread_executerFunction · 0.45
parsememdump.pyFile · 0.45
readlineMethod · 0.45
cancel_autobootMethod · 0.45
recvMethod · 0.45
sendMethod · 0.45
read_outputMethod · 0.45

Calls 1

getc_rawMethod · 0.95

Tested by

no test coverage detected