29 : m_bufs({{buf, size}})
34 : m_bufs({{
reinterpret_cast<const uint8_t*
>(
string.data()),
string.size()}})
39 : m_bufs({{buffer.data(), buffer.size()}})
44 : m_bufs(
std::move(buffers))
49 BufferSource::doPump()
51 BOOST_ASSERT(
m_next !=
nullptr);
53 for (
const auto& buffer : m_bufs) {
54 const uint8_t* buf = buffer.first;
55 size_t size = buffer.second;
58 size_t nBytesWritten =
m_next->write(buf, size);
60 size -= nBytesWritten;
General-purpose automatically managed/resized buffer.