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

Method GetFeatureOffset

libs/indexer/features_offsets_table.cpp:97–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97uint32_t FeaturesOffsetsTable::GetFeatureOffset(size_t index) const
98{
99 ASSERT_LESS(index, size(), ("Index out of bounds", index, size()));
100 return static_cast<uint32_t>(m_table.select(index));
101}
102
103size_t FeaturesOffsetsTable::GetFeatureIndexbyOffset(uint32_t offset) const
104{

Callers 3

ReadRelationMethod · 0.80
GetByIndexMethod · 0.80
UNIT_TESTFunction · 0.80

Calls 2

sizeFunction · 0.85
selectMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.64