MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / write_data

Function write_data

dependencies/httplib/httplib.h:3481–3489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3479}
3480
3481inline bool write_data(Stream &strm, const char *d, size_t l) {
3482 size_t offset = 0;
3483 while (offset < l) {
3484 auto length = strm.write(d + offset, l - offset);
3485 if (length < 0) { return false; }
3486 offset += static_cast<size_t>(length);
3487 }
3488 return true;
3489}
3490
3491template <typename T>
3492inline bool write_content(Stream &strm, const ContentProvider &content_provider,

Callers 4

write_contentFunction · 0.85
write_content_chunkedFunction · 0.85
write_requestMethod · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected