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

◆ consume()

void fl::HttpRequestParser::consume ( size_t n)
private

Definition at line 263 of file http_parser.cpp.hpp.

263 {
264 if (n >= mBuffer.size()) {
265 mBuffer.clear();
266 } else {
267 // Work around fl::vector::erase() issue by copying remaining data
268 fl::vector<u8> remaining(mBuffer.begin() + n, mBuffer.end());
269 mBuffer = remaining;
270 }
271}
fl::vector< u8 > mBuffer
Definition http_parser.h:75

References mBuffer.

Referenced by parseBody(), parseHeaders(), and parseRequestLine().

+ Here is the caller graph for this function: