MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / readAsString

Function readAsString

Sources/Dependencies/ixwebsocket/IXHttpServer.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 std::pair<bool, std::string> readAsString(const std::string& path)
39 {
40 auto res = load(path);
41 auto vec = res.second;
42 return std::make_pair(res.first, std::string(vec.begin(), vec.end()));
43 }
44
45 std::string response_head_file(const std::string& file_name){
46

Callers 1

Calls 3

loadFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected