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

Method loadString

src/Abyss/FileSystem/FileLoader.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace Abyss::FileSystem {
4
5std::string FileLoader::loadString(std::string_view path) {
6 auto stream = loadFile(path);
7 std::string result;
8 result.resize(stream.size());
9 stream.read(result.data(), stream.size());
10 return result;
11}
12
13std::vector<std::string> FileLoader::loadStringList(std::string_view path) {
14 auto stream = loadFile(path);

Callers 1

addDataTableMethod · 0.80

Calls 2

resizeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected