FastLED 3.10.8
Loading...
Searching...
No Matches

◆ chunkOverhead()

size_t fl::net::http::ChunkedWriter::chunkOverhead ( size_t dataLen)
static

Definition at line 179 of file chunked_encoding.cpp.hpp.

179 {
180 // Overhead: hex-digits + "\r\n" + data + "\r\n"
181 // Count hex digits needed
182 char sizeHex[32];
183 int hexLen = fl::snprintf(sizeHex, sizeof(sizeHex), "%zx", dataLen);
184 return static_cast<size_t>(hexLen) + 2 + dataLen + 2; // hex + \r\n + data + \r\n
185}
int snprintf(char *buffer, fl::size size, const char *format) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, and fl::snprintf().

Referenced by fl::net::http::HttpStreamTransport::writeResponse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: