Definition at line 126 of file chunked_encoding.cpp.hpp.
126 {
127
128 for (
size_t i = 0; i + 1 <
mBuffer.size(); i++) {
130
131 fl::string sizeStr(
reinterpret_cast<const char*
>(
mBuffer.data()), i);
132
133
134 size_t semicolon = sizeStr.find(';');
136 sizeStr = sizeStr.substr(0, semicolon);
137 }
138
139
141 outSize =
static_cast<size_t>(
strtoul(sizeStr.c_str(), &
end, 16));
142 if (
end == sizeStr.c_str()) {
143
144 return false;
145 }
146
147
149 return true;
150 }
151 }
152
153 return false;
154}
void consume(size_t n) FL_NO_EXCEPT
static constexpr fl::size npos
FASTLED_FORCE_INLINE unsigned long strtoul(const char *str, char **endptr, int base) FL_NO_EXCEPT
References fl::basic_string::c_str(), consume(), fl::adl_barrier::end(), fl::basic_string::find(), fl::FL_NO_EXCEPT, mBuffer, fl::string::npos, fl::strtoul(), and fl::string::substr().
Referenced by feed().