11#include <boost/serialization/access.hpp>
45 const uint8_t*
content(uint64_t component, uint64_t microslice)
const
60 uint8_t* component_data_ptr =
data_ptr_[component];
85 std::vector<TimesliceComponentDescriptor*>
desc_ptr_;
The MicrosliceView class provides read access to a microslice stored elsewhere.
uint64_t num_components() const
Retrieve the number of components (contributing input channels).
virtual ~Timeslice()=default
uint64_t num_microslices(uint64_t component) const
Retrieve the total number of microslices.
const MicrosliceDescriptor & descriptor(uint64_t component, uint64_t microslice) const
Retrieve the descriptor of a given microslice.
const uint8_t * content(uint64_t component, uint64_t microslice) const
Retrieve a pointer to the data content of a given microslice.
TimesliceDescriptor timeslice_descriptor_
The timeslice descriptor.
std::vector< uint8_t * > data_ptr_
A vector of pointers to the data content, one per timeslice component.
uint64_t num_core_microslices() const
Retrieve the number of core microslices.
std::vector< TimesliceComponentDescriptor * > desc_ptr_
A vector of pointers to the microslice descriptors, one per timeslice component.
const MicrosliceView get_microslice(uint64_t component, uint64_t microslice_index) const
Retrieve the descriptor and pointer to the data of a given microslice.
uint64_t index() const
Retrieve the timeslice index.
Defines the fles::MicrosliceDescriptor struct and corresponding enums.
Defines the fles::MicrosliceView class.
Defines the fles::TimesliceComponentDescriptor serializable struct.
Defines the fles::TimesliceDescriptor serializable struct.
Microslice descriptor struct.
uint64_t offset
Offset in event buffer (bytes)
Timeslice descriptor struct.
uint64_t index
Global index of this timeslice.
uint32_t num_core_microslices
Number of core microslices.
uint32_t num_components
Number of components (contributing input channels)