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

◆ operator>>() [7/10]

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

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

248 {
249 string token;
250 if (readToken(token)) {
251 fl::u32 temp;
252 if (parse_u32(token.c_str(), temp) && temp <= 255) {
253 n = static_cast<fl::u8>(temp);
254 } else {
255 mFailed = true;
256 }
257 } else {
258 mFailed = true;
259 }
260 return *this;
261}
bool readToken(string &token) FL_NO_EXCEPT
bool parse_u32(const char *str, fl::u32 &result) FL_NO_EXCEPT
unsigned char u8
Definition stdint.h:131

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

+ Here is the call graph for this function: