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

◆ get()

int fl::istream_real::get ( )

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

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