39 : m_bufs({{
reinterpret_cast<const uint8_t*
>(
string.data()),
string.size()}})
44 : m_bufs(std::move(buffers))
49 BufferSource::doPump()
51 BOOST_ASSERT(
m_next !=
nullptr);
53 for (
auto buffer : m_bufs) {
54 while (!buffer.empty()) {
55 size_t nBytesWritten =
m_next->write(buffer);
56 buffer = buffer.subspan(nBytesWritten);