29 :
std::runtime_error(
"Error in module " +
to_string(index) +
": " + what)
44 BOOST_THROW_EXCEPTION(
Error(
getIndex(),
"Module is closed, no more input"));
46 size_t nBytesWritten = doWrite(buf, size);
47 BOOST_ASSERT(nBytesWritten <= size);
73 BOOST_ASSERT(dynamic_cast<Transform*>(
m_next.get()) !=
nullptr);
90 size_t nWritten =
m_next->write(&(*m_oBuffer)[m_outputOffset],
91 m_oBuffer->size() - m_outputOffset);
92 m_outputOffset += nWritten;
107 m_oBuffer = std::move(buffer);
114 return (m_oBuffer ==
nullptr || m_oBuffer->size() == m_outputOffset);
118 Transform::doWrite(
const uint8_t* data,
size_t dataLen)
129 size_t nConverted = convert(data, dataLen);
144 Transform::preTransform()
149 Transform::finalize()
178 sink->setIndex(m_nModules);
Copyright (c) 2011-2015 Regents of the University of California.
std::string to_string(const V &v)