2 #include "cetlib_except/exception.h" 13 std::shared_ptr<dune::MicroSliceWriter>
22 throw cet::exception(
"MicroSliceWriter") <<
"Slice overflow error";
49 if (
header_()->microslice_count > 0 &&
63 uint8_t* ms_ptr =
reinterpret_cast<uint8_t *
>(
artdaq_fragment_.dataBeginBytes())
65 for (
int idx = 0; idx <
index; ++idx) {
67 ms_ptr += tmp_ms.
size();
std::shared_ptr< MicroSliceWriter > reserveMicroSlice(uint32_t ms_max_bytes)
void finalizeLatestMicroSlice_()
uint8_t * data_(int index)
Header::microslice_size_t size() const
MilliSliceFragmentWriter(artdaq::Fragment &frag, uint32_t max_size_bytes)
artdaq::Fragment & artdaq_fragment_
std::shared_ptr< MicroSliceWriter > latest_microslice_ptr_
Header::millislice_size_t size() const
cet::coded_exception< error, detail::translate > exception