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

◆ get()

int fl::istream_real::get ( )

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

370 {
371 if (mPos >= mBufferLen && fl::available() > 0) {
372 if (!readLine()) {
373 return -1;
374 }
375 }
376
377 if (mPos < mBufferLen) {
378 return static_cast<int>(static_cast<unsigned char>(mBuffer[mPos++]));
379 }
380
381 // Try to read directly from input if buffer is empty
382 return fl::read();
383}
fl::size mBufferLen
Definition istream.h:27
fl::size mPos
Definition istream.h:28
char mBuffer[BUFFER_SIZE]
Definition istream.h:26
int available()
int read()

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

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

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