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

◆ get()

int fl::istream_real::get ( )

Definition at line 369 of file istream.cpp.

369 {
370 if (pos_ >= buffer_len_ && fl::available() > 0) {
371 if (!readLine()) {
372 return -1;
373 }
374 }
375
376 if (pos_ < buffer_len_) {
377 return static_cast<int>(static_cast<unsigned char>(buffer_[pos_++]));
378 }
379
380 // Try to read directly from input if buffer is empty
381 return fl::read();
382}
fl::size buffer_len_
Definition istream.h:31
char buffer_[BUFFER_SIZE]
Definition istream.h:30
fl::size pos_
Definition istream.h:32
int available()
Definition io.cpp:117
int read()
Definition io.cpp:148

References fl::available(), buffer_, buffer_len_, pos_, 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: