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

Method Read

libs/search/postcode_points.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using namespace strings;
25
26void PostcodePoints::Header::Read(Reader & reader)
27{
28 NonOwningReaderSource source(reader);
29 CHECK_EQUAL(static_cast<uint8_t>(m_version), static_cast<uint8_t>(Version::V0), ());
30 m_version = static_cast<Version>(ReadPrimitiveFromSource<uint8_t>(source));
31 CHECK_EQUAL(static_cast<uint8_t>(m_version), static_cast<uint8_t>(Version::V0), ());
32 m_trieOffset = ReadPrimitiveFromSource<uint32_t>(source);
33 m_trieSize = ReadPrimitiveFromSource<uint32_t>(source);
34 m_pointsOffset = ReadPrimitiveFromSource<uint32_t>(source);
35 m_pointsSize = ReadPrimitiveFromSource<uint32_t>(source);
36}
37
38PostcodePoints::PostcodePoints(MwmValue const & value)
39{

Callers 6

ReadShadersPackFileFunction · 0.45
LoadHouseTableImplFunction · 0.45
PostcodePointsMethod · 0.45
RetrievalMethod · 0.45
DeserializeTokenMethod · 0.45
DeserializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected