| 3931 | } |
| 3932 | |
| 3933 | inline 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 | |
| 3943 | template <typename T> |
| 3944 | inline bool write_content(Stream &strm, const ContentProvider &content_provider, |
no test coverage detected