| 3479 | } |
| 3480 | |
| 3481 | inline 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 | |
| 3491 | template <typename T> |
| 3492 | inline bool write_content(Stream &strm, const ContentProvider &content_provider, |
no test coverage detected