| 3692 | } |
| 3693 | |
| 3694 | inline 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 | |
| 3704 | template <typename T> |
| 3705 | inline bool write_content(Stream &strm, const ContentProvider &content_provider, |
no test coverage detected