FastLED 3.10.6
Loading...
Searching...
No Matches

◆ peek()

int fl::istream_real::peek ( )

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

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