MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / ReadStringN

Method ReadStringN

Source/SimpleFile.cpp:163–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163std::string CSimpleFile::ReadStringN(size_t count) {
164 char buf[1024] = { };
165 std::string str;
166
167 while (count) {
168 size_t readCount = count > std::size(buf) ? std::size(buf) : count;
169 m_fFile.read(buf, readCount);
170 str.append(buf, readCount);
171 count -= readCount;
172 }
173
174 return str;
175}
176
177std::string CSimpleFile::ReadStringNull()
178{

Callers 1

LoadInstrumentMethod · 0.80

Calls 2

sizeFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected