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

◆ peek()

int fl::istream_real::peek ( )

Definition at line 402 of file istream.cpp.hpp.

402 {
403 if (mPos >= mBufferLen && fl::available() > 0) {
404 if (!readLine()) {
405 return -1;
406 }
407 }
408
409 if (mPos < mBufferLen) {
410 return static_cast<int>(static_cast<unsigned char>(mBuffer[mPos]));
411 }
412
413 return -1;
414}
fl::size mBufferLen
Definition istream.h:26
fl::size mPos
Definition istream.h:27
char mBuffer[BUFFER_SIZE]
Definition istream.h:25
int available()

References fl::available(), mBuffer, mBufferLen, mPos, and readLine().

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

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