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

Method CreateSubReader

libs/coding/mmap_reader.cpp:133–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133std::unique_ptr<Reader> MmapReader::CreateSubReader(uint64_t pos, uint64_t size) const
134{
135 ASSERT_LESS_OR_EQUAL(pos + size, Size(), (pos, size));
136 // Can't use make_unique with private constructor.
137 return std::unique_ptr<Reader>(new MmapReader(*this, m_offset + pos, size));
138}
139
140uint8_t * MmapReader::Data() const
141{

Callers 13

DeserializeMethod · 0.45
LoadMethod · 0.45
LoadV1Method · 0.45
DeserializeMethod · 0.45
DeserializeV0Method · 0.45
ReadValuesMethod · 0.45
UNIT_CLASS_TESTFunction · 0.45
DeserializeMethod · 0.45

Calls 1

SizeFunction · 0.85

Tested by 1

UNIT_CLASS_TESTFunction · 0.36