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

◆ consume()

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

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

498 {
499 if (n >= mBuffer.size()) {
500 mBuffer.clear();
501 } else {
502 // Work around fl::vector::erase() issue by copying remaining data
503 fl::vector<u8> remaining(mBuffer.begin() + n, mBuffer.end());
504 mBuffer = remaining;
505 }
506}
fl::vector< u8 > mBuffer

References mBuffer.

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

+ Here is the caller graph for this function: