MCPcopy Create free account
hub / github.com/FastLED/FastLED / writeFinal

Method writeFinal

src/fl/net/http/chunked_encoding.cpp.hpp:212–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212size_t ChunkedWriter::writeFinal(fl::span<u8> out) {
213 if (out.size() < FINAL_SIZE) {
214 return 0;
215 }
216 // Final chunk: 0\r\n\r\n
217 const char* finalStr = "0\r\n\r\n";
218 memcpy(out.data(), finalStr, FINAL_SIZE);
219 return FINAL_SIZE;
220}
221
222} // namespace http
223} // namespace net

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 3

memcpyFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected