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

◆ operator>>() [7/10]

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

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

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

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

+ Here is the call graph for this function: