MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / readString

Method readString

src/Abyss/Streams/StreamReader.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51int64_t StreamReader::readInt64() { return static_cast<int64_t>(readUInt64()); }
52
53std::string StreamReader::readString() {
54 std::string result;
55 char c;
56
57 while ((c = static_cast<char>(_inputStream.get())) != '\0') {
58 result.push_back(c);
59 }
60
61 return result;
62}
63
64void StreamReader::skip(int64_t numBytes) {
65 _inputStream.ignore(numBytes);

Callers 1

DS1Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected