MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / readFile

Function readFile

Source/Falcor/Core/Platform/OS.cpp:273–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273std::string readFile(const std::filesystem::path& path)
274{
275 std::ifstream ifs(path, std::ios::binary);
276 if (!ifs)
277 FALCOR_THROW("Failed to read from file '{}'.", path);
278 return std::string((std::istreambuf_iterator<char>(ifs)), (std::istreambuf_iterator<char>()));
279}
280
281std::string decompressFile(const std::filesystem::path& path)
282{

Callers 6

editorFileChangeCBMethod · 0.85
runScriptFromFileMethod · 0.85
runScriptFileFunction · 0.85
decompressFileFunction · 0.85
createFromFileMethod · 0.85
importSceneMethod · 0.85

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected