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

Function WriteVersion

libs/platform/mwm_version.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void WriteVersion(Writer & w, uint64_t secondsSinceEpoch)
63{
64 w.Write(MWM_PROLOG, ARRAY_SIZE(MWM_PROLOG));
65
66 // write inner data version
67 WriteVarUint(w, static_cast<uint32_t>(Format::lastFormat));
68 WriteVarUint(w, secondsSinceEpoch);
69}
70
71uint32_t ReadVersionDate(ModelReaderPtr const & reader)
72{

Callers 2

FinishMethod · 0.50
ScopedMwmMethod · 0.50

Calls 2

WriteVarUintFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected