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

Method InitRecordsReader

libs/indexer/features_vector.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void FeaturesVector::InitRecordsReader()
23{
24 FilesContainerR::TReader reader = m_loadInfo.GetDataReader();
25 ReaderSource src(reader);
26
27 feature::DatSectionHeader header;
28 header.Read(src);
29
30 m_loadInfo.m_version = header.m_version;
31
32 m_recordReader = std::make_unique<RecordReader>(reader.SubReader(header.m_featuresOffset, header.m_featuresSize));
33}
34
35std::unique_ptr<FeatureType> FeaturesVector::GetByIndex(uint32_t index) const
36{

Callers

nothing calls this directly

Calls 3

GetDataReaderMethod · 0.80
ReadMethod · 0.45
SubReaderMethod · 0.45

Tested by

no test coverage detected