| 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 | |
| 97 | private: |
| 98 | unique_ptr<MemoryRegion> m_region; |
nothing calls this directly
no test coverage detected