29 :
std::runtime_error(
"Error in module " +
to_string(index) +
": " + what)
40 size_t nBytesWritten = doWrite(buf);
41 BOOST_ASSERT(nBytesWritten <= buf.size());
58 if (m_next ==
nullptr) {
62 BOOST_ASSERT(dynamic_cast<Transform*>(m_next.get()) !=
nullptr);
70 if (isOutputBufferEmpty())
73 size_t nWritten = m_next->write(make_span(*m_oBuffer).subspan(m_outputOffset));
74 m_outputOffset += nWritten;
80 while (!isOutputBufferEmpty()) {
88 BOOST_ASSERT(isOutputBufferEmpty());
96 return m_oBuffer ==
nullptr || m_oBuffer->size() == m_outputOffset;
100 Transform::doWrite(span<const uint8_t> data)
103 if (!isOutputBufferEmpty())
108 if (!isOutputBufferEmpty())
111 size_t nConverted = convert(data);
124 Transform::preTransform()
129 Transform::finalize()
143 transform->setIndex(m_nModules);
153 sink->setIndex(m_nModules);
Copyright (c) 2011-2015 Regents of the University of California.
std::string to_string(const T &val)