1#ifndef SERIALIZATION_H_INCLUDED
2#define SERIALIZATION_H_INCLUDED
12#include "tof_typedefs.h"
13#include "packets/tof_packet.h"
14#include "serialization.h"
17template<
typename Derived>
19 static Derived from_tofpacket(
const TofPacket &p) {
21 return Derived::from_bytestream(p.payload, pos);
43u64 search_for_2byte_marker(
const Vec<u8> &bytestream,
51Vec<u32> get_2byte_markers_indices(
const Vec<u8> &bytestream, u8 marker);
55bytestream get_bytestream_from_file(
const std::string &filename);
Allow to extend all classes with a from_tofpacket method.
Definition serialization.h:18
Definition tof_packet.h:81