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