FastLED 3.9.15
Loading...
Searching...
No Matches

◆ peek()

int fl::istream_real::peek ( )

Definition at line 402 of file istream.cpp.

402 {
403 if (pos_ >= buffer_len_ && fl::available() > 0) {
404 if (!readLine()) {
405 return -1;
406 }
407 }
408
409 if (pos_ < buffer_len_) {
410 return static_cast<int>(static_cast<unsigned char>(buffer_[pos_]));
411 }
412
413 return -1;
414}
fl::size buffer_len_
Definition istream.h:31
char buffer_[BUFFER_SIZE]
Definition istream.h:30
fl::size pos_
Definition istream.h:32
int available()
Definition io.cpp:117

References fl::available(), buffer_, buffer_len_, pos_, and readLine().

Referenced by fl::istream::peek().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: