I want to find...

検索

Shares

Table of Content

stream.peek()

[Stream]

説明

Read a byte from the file without advancing to the next one. That is, successive calls to peek() will return the same value, as will the next call to read().

This function is part of the Stream class and is called by any class that inherits from it (Wire, Serial, etc).

構文

stream.peek()

媒介変数

stream : an instance of a class that inherits from Stream.

戻り値

The next byte (or character), or -1 if none is available.

See also


Language Reference Home

86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain

上部へスクロール