![]() |
mFrame
|
[Interface] 定義了輸入流的基本操作 更多...
#include <InputStream.h>
公開方法(Public Methods) | |
virtual bool | abortRead (void) override |
中止讀取操作。 | |
virtual bool | readBusy (void) override |
檢查讀取操作是否忙碌。 | |
virtual bool | read (ufm::lang::Appendable &appendable, void *attachment, ufm::io::CompletionHandler< int > *handler) override |
非同步讀取。從輸入串流中讀取一些字節數,並將他們存到寫入緩衝區writeBuffer。 | |
bool | read (ufm::lang::Appendable &appendable, ufm::util::Future< int > &future) |
同步讀取。從輸入串流中讀取一些字節數,並將他們存到寫入緩衝區appendable。 | |
[Interface] 定義了輸入流的基本操作
|
pure virtual |
中止讀取操作。
實作於 ufm::io::SerialPort::InputStream, 及 ufm::io::SimpleInputStream.
|
inline |
同步讀取。從輸入串流中讀取一些字節數,並將他們存到寫入緩衝區appendable。
appendable | 寫緩衝區。 |
future | 用於表示操作狀態的Future對象。 |
|
pure virtual |
非同步讀取。從輸入串流中讀取一些字節數,並將他們存到寫入緩衝區writeBuffer。
當寫緩衝區滿時將調用handler進行非同步事件。
tips. 此方法調用後不論狀態將立即返回。
writeBuffer | 寫緩衝區。 |
attachment | 使用者參數,將再調用handler時傳入。 |
handler | 事件處理器。 |
實作於 ufm::io::SerialPort::InputStream, 及 ufm::io::SimpleInputStream.
|
pure virtual |