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

Method Read

libs/coding/var_serial_vector.hpp:70–78  ·  view source on GitHub ↗

Used for unit tests only. Dont't do COW in production code.

Source from the content-addressed store, hash-verified

68
69 /// Used for unit tests only. Dont't do COW in production code.
70 std::string Read(uint32_t i) const
71 {
72 std::pair<uint32_t, uint32_t> const posAsize = GetPosAndSize(i);
73
74 std::string result;
75 result.resize(posAsize.second);
76 ReadFromPos(m_dataReader, posAsize.first, (void *)result.data(), posAsize.second);
77 return result;
78 }
79
80 ReaderT SubReader(uint32_t i) const
81 {

Callers

nothing calls this directly

Calls 3

ReadFromPosFunction · 0.85
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected