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

◆ operator>>() [5/10]

istream_real & fl::istream_real::operator>> ( fl::i8 & n)

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

233 {
234 string token;
235 if (readToken(token)) {
236 fl::i32 temp;
237 if (parse_i32(token.c_str(), temp) && temp >= -128 && temp <= 127) {
238 n = static_cast<fl::i8>(temp);
239 } else {
240 mFailed = true;
241 }
242 } else {
243 mFailed = true;
244 }
245 return *this;
246}
bool readToken(string &token) FL_NO_EXCEPT
bool parse_i32(const char *str, fl::i32 &result) FL_NO_EXCEPT
signed char i8
Definition stdint.h:130

References istream_real(), fl::basic_string::c_str(), fl::FL_NO_EXCEPT, mFailed, and readToken().

+ Here is the call graph for this function: