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