MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / write_data

Function write_data

examples/server/httplib.h:3933–3941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3931}
3932
3933inline bool write_data(Stream &strm, const char *d, size_t l) {
3934 size_t offset = 0;
3935 while (offset < l) {
3936 auto length = strm.write(d + offset, l - offset);
3937 if (length < 0) { return false; }
3938 offset += static_cast<size_t>(length);
3939 }
3940 return true;
3941}
3942
3943template <typename T>
3944inline 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