Stream

Stream 是字元及二進制串流的基礎類別,它不會被使用者直接呼叫到,而是在使用一個有依賴它的函式時,才會被呼叫。

在 86Duino 中 Stream 定義了讀取函式,當使用到 read() 或類似方法的核心功能時,你可以放心的假設它會呼叫 Stream 類別;例如: print() 函式,Stream 類別會繼承 Print 類別。

下列有一些範例類別是依賴 Stream 類別的:

Serial
Ethernet
SD
Wire

Functions

available()
read()
flush()
find()
findUntil()
peek()
readBytes()
readBytesUntil()
readString()
readStringUntil()
parseInt()
parseFloat()
setTimeout()


語法參考主頁面

本頁由熱血青年 LBU 譯自英文版。

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.