1 #ifndef FIRMWARE_utils_emulator_io_h 2 #define FIRMWARE_utils_emulator_io_h 12 to.write(reinterpret_cast<const char *>(&
src),
sizeof(
T));
18 from.read(reinterpret_cast<char *>(&
to),
sizeof(
T));
26 uint32_t w32 =
word.to_uint();
39 ap_uint<32>
word = w32;
52 ap_uint<T::BITWIDTH> packed;
bool writeObj(const T &obj, std::fstream &to)
bool readObj(std::fstream &from, T &obj)
bool readVar(std::fstream &from, T &to)
std::pair< unsigned int, unsigned int > unpack(cond::Time_t since)
bool writeAP(const T &src, std::fstream &to)
bool readAP(std::fstream &from, T &to)
bool readMany(std::fstream &from, std::vector< T > &objs)
bool writeVar(const T &src, std::fstream &to)
bool writeMany(const std::vector< T > &objs, std::fstream &to)