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

Function GetMask

libs/drape_frontend/tile_key.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace
17{
18uint32_t constexpr GetMask(uint8_t bitsCount)
19{
20 ASSERT(bitsCount > 0 && bitsCount < 32, (bitsCount));
21 return (uint32_t(1) << bitsCount) - 1;
22}
23} // namespace
24
25TileKey::TileKey() : m_x(-1), m_y(-1), m_zoomLevel(0), m_generation(0), m_userMarksGeneration(0) {}

Callers 1

GetHashValueMethod · 0.85

Calls 1

ASSERTFunction · 0.85

Tested by

no test coverage detected