MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / write_data

Function write_data

examples/server/httplib.h:3694–3702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3692}
3693
3694inline bool write_data(Stream &strm, const char *d, size_t l) {
3695 size_t offset = 0;
3696 while (offset < l) {
3697 auto length = strm.write(d + offset, l - offset);
3698 if (length < 0) { return false; }
3699 offset += static_cast<size_t>(length);
3700 }
3701 return true;
3702}
3703
3704template <typename T>
3705inline 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.45

Tested by

no test coverage detected