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

Method Load

libs/indexer/rank_table.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 // Loads RankTableV0 from a raw memory region.
88 template <class TRegion>
89 static unique_ptr<RankTableV0> Load(unique_ptr<TRegion> && region)
90 {
91 auto table = make_unique<RankTableV0>();
92 table->m_region = std::move(region);
93 coding::Map(table->m_coding, table->m_region->ImmutableData() + kHeaderSize, "SimpleDenseCoding");
94 return table;
95 }
96
97private:
98 unique_ptr<MemoryRegion> m_region;

Callers

nothing calls this directly

Calls 2

MapFunction · 0.50
ImmutableDataMethod · 0.45

Tested by

no test coverage detected