/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Reads data from a DataPipeReceiver (JS writes) and writes it to the serial // device. Runs on the IO thread. Uses AsyncWait to be notified when data is // available in the pipe. class SerialPortWritePump final : public nsIInputStreamCallback {
public:
NS_DECL_THREADSAFE_ISUPPORTS
// Register a runnable to invoke when the input pipe is fully closed (all // data consumed and written to the device). If the pipe is already closed // the runnable fires synchronously. Only one callback may be registered; // a second call replaces the previous one. void OnPipeClosed(nsCOMPtr<nsIRunnable>&& aCallback);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.