| 4419 | } |
| 4420 | |
| 4421 | inline bool write_data(Stream &strm, const char *d, size_t l) { |
| 4422 | size_t offset = 0; |
| 4423 | while (offset < l) { |
| 4424 | auto length = strm.write(d + offset, l - offset); |
| 4425 | if (length < 0) { return false; } |
| 4426 | offset += static_cast<size_t>(length); |
| 4427 | } |
| 4428 | return true; |
| 4429 | } |
| 4430 | |
| 4431 | template <typename T> |
| 4432 | inline bool write_content(Stream &strm, const ContentProvider &content_provider, |
no test coverage detected