1 #ifndef EUDAQ_INCLUDED_BufferSerializer
2 #define EUDAQ_INCLUDED_BufferSerializer
7 #include "eudaq/Serializer.hh"
8 #include "eudaq/Exception.hh"
17 template <
typename InIt>
19 : m_data(first, last), m_offset(0) {}
25 const unsigned char &operator[](
size_t i)
const {
return m_data[i]; }
26 size_t size()
const {
return m_data.size(); }
27 virtual bool HasData() {
return m_data.size() != 0; }
31 virtual void Serialize(
const unsigned char *data,
size_t len);
32 virtual void Deserialize(
unsigned char *data,
size_t len);
33 std::vector<unsigned char> m_data;
38 #endif // EUDAQ_INCLUDED_BufferSerializer
Definition: Serializer.hh:156
Definition: Serializable.hh:13
Definition: Serializer.hh:19
Definition: BufferSerializer.hh:12