1#ifndef REFLECTIVE_RAPIDJSON_BINARY_REFLECTOR_CHRONO_UTILITIES_H
2#define REFLECTIVE_RAPIDJSON_BINARY_REFLECTOR_CHRONO_UTILITIES_H
13#include <c++utilities/chrono/datetime.h>
14#include <c++utilities/chrono/timespan.h>
17namespace BinaryReflector {
22 CPP_UTILITIES_UNUSED(version)
23 deserializer.
read(dateTime.ticks());
30 CPP_UTILITIES_UNUSED(version)
31 serializer.
write(dateTime.totalTicks());
37 CPP_UTILITIES_UNUSED(version)
38 deserializer.
read(timeSpan.ticks());
45 CPP_UTILITIES_UNUSED(version)
46 serializer.
write(timeSpan.totalTicks());
Contains BinaryReader and BinaryWriter supporting binary (de)serialization of primitive and custom ty...
The BinaryDeserializer class can read various data types, including custom ones, from an std::istream...
The BinarySerializer class can write various data types, including custom ones, to an std::ostream.
void write(const Type &pair)
BinaryVersion readCustomType< CppUtilities::TimeSpan >(BinaryDeserializer &deserializer, CppUtilities::TimeSpan &timeSpan, BinaryVersion version)
void writeCustomType< CppUtilities::DateTime >(BinarySerializer &serializer, const CppUtilities::DateTime &dateTime, BinaryVersion version)
void writeCustomType< CppUtilities::TimeSpan >(BinarySerializer &serializer, const CppUtilities::TimeSpan &timeSpan, BinaryVersion version)
BinaryVersion readCustomType< CppUtilities::DateTime >(BinaryDeserializer &deserializer, CppUtilities::DateTime &dateTime, BinaryVersion version)
std::uint64_t BinaryVersion