FastLED 3.10.8
Loading...
Searching...
No Matches

◆ peek()

int fl::istream_real::peek ( )

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

404 {
405 if (mPos >= mBufferLen && fl::available() > 0) {
406 if (!readLine()) {
407 return -1;
408 }
409 }
410
411 if (mPos < mBufferLen) {
412 return static_cast<int>(static_cast<unsigned char>(mBuffer[mPos]));
413 }
414
415 return -1;
416}
fl::size mBufferLen
Definition istream.h:32
fl::size mPos
Definition istream.h:33
char mBuffer[BUFFER_SIZE]
Definition istream.h:31
bool readLine() FL_NO_EXCEPT
int available() FL_NO_EXCEPT

References fl::available(), fl::FL_NO_EXCEPT, 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: