w.Write(&v, sizeof(v));
}
inline void Deserialize(IReader &r, int *v) {
- r.Read(v, sizeof(v));
+ r.Read(v, sizeof(int));
}
inline void Deserialize(IReader &r, int &v) {
r.Read(&v, sizeof(v));
w.Write(&v, sizeof(v));
}
inline void Deserialize(IReader &r, unsigned int *v) {
- r.Read(v, sizeof(v));
+ r.Read(v, sizeof(unsigned int));
}
inline void Deserialize(IReader &r, unsigned int &v) {
r.Read(&v, sizeof(v));
w.Write(&v, sizeof(v));
}
inline void Deserialize(IReader &r, bool *v) {
- r.Read(v, sizeof(v));
+ r.Read(v, sizeof(bool));
}
inline void Deserialize(IReader &r, bool &v) {
r.Read(&v, sizeof(v));
w.Write(&v, sizeof(v));
}
inline void Deserialize(IReader &r, time_t *v) {
- r.Read(v, sizeof(v));
+ r.Read(v, sizeof(time_t));
}
inline void Deserialize(IReader &r, time_t &v) {
r.Read(&v, sizeof(v));
return Time::Month::December;
}
FAT("Invalid struct tm month value");
+ // provide default value;
+ return Time::Month::January;
}
inline static Time ConvertElmDatetimeTimeToTime(const Elm_Datetime_Time &time)