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

Method ReadAsString

libs/coding/reader.cpp:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "coding/reader.hpp"
2
3void Reader::ReadAsString(std::string & s) const
4{
5 s.clear();
6 s.resize(static_cast<size_t>(Size()));
7 Read(0 /* pos */, s.data(), s.size());
8}

Callers 15

UnzipAndMatchFunction · 0.45
ReadRegionDataImplFunction · 0.45
DeserializeFromJsonFunction · 0.45
LoadBrandsFunction · 0.45
MainWindowMethod · 0.45
AboutDialogMethod · 0.45
mainFunction · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45
ReadTestDataFunction · 0.45

Calls 6

SizeFunction · 0.85
ReadFunction · 0.70
clearMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 10

UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
ReadTestDataFunction · 0.36
LoadGpxFromFileFunction · 0.36
ReadFileFunction · 0.36
UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36
UNIT_CLASS_TESTFunction · 0.36
ReadFileAsStringFunction · 0.36