MCPcopy Create free account
hub / github.com/FastLED/FastLED / get

Method get

src/fl/stl/istream.cpp.hpp:369–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369int istream_real::get() {
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}
383
384istream_real& istream_real::putback(char c) {
385 if (mPos > 0) {

Callers 15

operator()Method · 0.45
to_stringMethod · 0.45
acceptMethod · 0.45
to_string_nativeMethod · 0.45
not_nullFunction · 0.45
operator==Function · 0.45
operator!=Function · 0.45
operator<Function · 0.45
operator<=Function · 0.45
operator>Function · 0.45
operator>=Function · 0.45
acceptMethod · 0.45

Calls 3

readLineFunction · 0.85
availableFunction · 0.70
readFunction · 0.70

Tested by

no test coverage detected