Stream
Stream
是字元及二进制串流的基础类别,它不会被使用者直接呼叫到,而是在使用一个有依赖它的函式时,才会被呼叫。
在 86Duino 中 Stream 定义了读取函式,当使用到 read()
或类似方法的核心功能时,你可以放心的假设它会呼叫 Stream 类别;例如: print()
函式,Stream 类别会继承 Print 类别。
下列有一些范例类别是依赖 Stream 类别的:
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.