MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / write_data

Function write_data

external/httplib.h:4421–4429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4419}
4420
4421inline bool write_data(Stream &strm, const char *d, size_t l) {
4422 size_t offset = 0;
4423 while (offset < l) {
4424 auto length = strm.write(d + offset, l - offset);
4425 if (length < 0) { return false; }
4426 offset += static_cast<size_t>(length);
4427 }
4428 return true;
4429}
4430
4431template <typename T>
4432inline bool write_content(Stream &strm, const ContentProvider &content_provider,

Callers 5

write_contentFunction · 0.85
write_content_chunkedFunction · 0.85
write_response_coreMethod · 0.85
write_requestMethod · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected