MCPcopy Create free account
hub / github.com/comaps/comaps / WriteVersion

Function WriteVersion

libs/map/gps_track_storage.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89inline bool WriteVersion(fstream & f, uint32_t version)
90{
91 static_assert(kHeaderSize == sizeof(version));
92 version = SwapIfBigEndianMacroBased(version);
93 f.write(reinterpret_cast<char const *>(&version), kHeaderSize);
94 return f.good() && f.flush().good();
95}
96
97inline bool ReadVersion(fstream & f, uint32_t & version)
98{

Callers 2

GpsTrackStorageMethod · 0.70
ClearMethod · 0.70

Calls 2

writeMethod · 0.45

Tested by

no test coverage detected