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

Method Read

libs/coding/mmap_reader.cpp:127–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void MmapReader::Read(uint64_t pos, void * p, size_t size) const
128{
129 ASSERT_LESS_OR_EQUAL(pos + size, Size(), (pos, size));
130 memcpy(p, m_data->m_memory + m_offset + pos, size);
131}
132
133std::unique_ptr<Reader> MmapReader::CreateSubReader(uint64_t pos, uint64_t size) const
134{

Callers 15

PushMethod · 0.45
CreateZipFromFilesFunction · 0.45
ReadVarUintFunction · 0.45
ReadAndDecodeMethod · 0.45
LoadOuterFunction · 0.45
DeserializerJsonMethod · 0.45
CalculateMethod · 0.45
xsgetnMethod · 0.45
ReadFunction · 0.45
ReadPODFunction · 0.45
ReadVectorOfPODFunction · 0.45
ReadAndWriteFunction · 0.45

Calls 1

SizeFunction · 0.85

Tested by

no test coverage detected