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 <memory> // unique_ptr
13#include <vector>
14#include <cstring> // memcpy
15#include <tuple> // tie
16
17namespace dunedaq {
18namespace fdreadoutlibs {
19namespace types {
20
21
27{
30 : size(size)
31 , data(data)
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_
Including Qt Headers.
Convencience wrapper to take ownership over char pointers with corresponding allocated memory size.