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

Method Read

libs/coding/buffer_reader.hpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 uint64_t Size() const { return m_size; }
31
32 void Read(uint64_t pos, void * p, size_t size) const
33 {
34 ASSERT_LESS_OR_EQUAL(pos + size, Size(), (pos, size));
35 memcpy(p, m_data.get() + static_cast<size_t>(pos) + m_offset, size);
36 }
37
38 BufferReader SubReader(uint64_t pos, uint64_t size) const { return BufferReader(*this, pos, size); }
39

Callers 1

BufferReaderMethod · 0.45

Calls 2

SizeFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected