1 #ifndef EUDAQ_INCLUDED_FileSerializer
2 #define EUDAQ_INCLUDED_FileSerializer
6 #include "eudaq/Serializer.hh"
7 #include "eudaq/Exception.hh"
8 #include "eudaq/BufferSerializer.hh"
16 uint64_t FileBytes()
const {
return m_filebytes; }
20 virtual void Serialize(
const unsigned char *data,
size_t len);
28 size_t buffersize = 65536);
29 virtual bool HasData();
30 template <
typename T> T peek() {
37 bool ReadEvent(
int ver, std::shared_ptr<eudaq::Event> &ev,
size_t skip = 0);
40 virtual void Deserialize(
unsigned char *data,
size_t len);
41 size_t FillBuffer(
size_t min = 0);
42 size_t level()
const {
return m_stop - m_start; }
43 typedef unsigned char *ptr_t;
46 std::vector<unsigned char> m_buf;
47 ptr_t m_start, m_stop;
51 #endif // EUDAQ_INCLUDED_FileSerializer
Definition: FileSerializer.hh:12
Definition: Serializer.hh:156
Definition: FileSerializer.hh:25
Definition: Serializer.hh:19
Definition: BufferSerializer.hh:12