19 #ifdef PENN_DONT_REBLOCK_USLICES 20 std::shared_ptr<dune::PennMicroSliceWriter>
21 dune::PennMilliSliceWriter::reserveMicroSlice(uint32_t ms_max_bytes)
36 ++(
header_()->microslice_count);
43 #ifdef PENN_DONT_REBLOCK_USLICES
44 uint32_t microslice_count,
47 uint16_t payload_count, uint16_t payload_count_counter,
48 uint16_t payload_count_trigger, uint16_t payload_count_timestamp,
49 uint64_t end_timestamp, uint32_t width_in_ticks, uint32_t overlap_in_ticks)
58 #ifdef PENN_DONT_REBLOCK_USLICES 59 header_()->microslice_count = microslice_count;
71 #ifdef ENABLE_PENNMILLISLICE_CHECKSUM 75 *(
reinterpret_cast<dune::PennMilliSliceWriter::checksum_t *
>(end_ptr)) = calculateChecksum();
88 #ifdef PENN_DONT_REBLOCK_USLICES
89 header_()->microslice_count > 0 &&
105 for (
int idx = 0; idx <
index; ++idx) {
107 ms_ptr += tmp_ms.
size();
PennMilliSliceWriter(uint8_t *address, uint32_t max_size_bytes)
int32_t finalize(bool override=false, uint32_t data_size_bytes=0, uint16_t sequence_id=0, uint16_t payload_count=0, uint16_t payload_count_counter=0, uint16_t payload_count_trigger=0, uint16_t payload_count_timestamp=0, uint64_t end_timestamp=0, uint32_t width_in_ticks=0, uint32_t overlap_in_ticks=0)
Header::millislice_size_t size() const
std::shared_ptr< PennMicroSliceWriter > latest_microslice_ptr_
dune::PennMicroSlice::microslice_size_t size() const
void finalizeLatestMicroSlice_()
uint8_t * data_(int index)