parameters: (self)
return_statement: return comstat.cbInQue
docstring: Return the number of bytes currently in the input buffer.
docstring_summary: Return the number of bytes currently in the input buffer.
docstring_tokens: Return the number of bytes currently in the input buffer .
function: def in_waiting(self):
          """Return the number of bytes currently in the input buffer."""
          flags = win32.DWORD()
          comstat = win32.COMSTAT()
          if not win32.ClearCommError(self._port_handle, ctypes.byref(flags), ctypes.byref(comstat)):
              raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError()))
          return comstat.cbInQue
function_tokens: def in_waiting ( self ) : flags = win32 . DWORD ( ) comstat = win32 . COMSTAT ( ) if not win32 . ClearCommError ( self . _port_handle , ctypes . byref ( flags ) , ctypes . byref ( comstat ) ) : raise SerialException ( "ClearCommError failed ({!r})" . format ( ctypes . WinError ( ) ) ) return comstat . cbInQue