DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
VariableSizePayloadTypeAdapter.hpp
Go to the documentation of this file.
1
8#ifndef FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_VARIABLESIZEPAYLOADTYPEADAPTER_HPP_
9#define FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_VARIABLESIZEPAYLOADTYPEADAPTER_HPP_
10
11#include <cstdint> // uint_t types
12#include <cstring> // memcpy
13#include <memory> // unique_ptr
14#include <tuple> // tie
15#include <vector>
16
17namespace dunedaq {
18namespace fdreadoutlibs {
19namespace types {
20
26{
29 : size(size)
30 , data(data)
31 {
32 }
33
34 size_t size = 0;
35 std::unique_ptr<char> data = nullptr;
36};
37
38} // namespace types
39} // namespace fdreadoutlibs
40} // namespace dunedaq
41
42#endif // FDREADOUTLIBS_INCLUDE_FDREADOUTLIBS_VARIABLESIZEPAYLOADTYPEADAPTER_HPP_
The DUNE-DAQ namespace.