MCPcopy Create free account
hub / github.com/cocos/cocos-engine / getStringFromFile

Method getStringFromFile

native/cocos/platform/FileUtils.cpp:551–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551ccstd::string FileUtils::getStringFromFile(const ccstd::string &filename) {
552 ccstd::string s;
553 getContents(filename, &s);
554 return s;
555}
556
557Data FileUtils::getDataFromFile(const ccstd::string &filename) {
558 Data d;

Callers 10

readLocalizationFileMethod · 0.80
readConfigMethod · 0.80
loadDragonBonesDataMethod · 0.80
loadTextureAtlasDataMethod · 0.80
readFileMethod · 0.80
tryParseConfigMethod · 0.80
loadJsonMethod · 0.80
readJsonSyncFunction · 0.80

Calls 1

getContentsFunction · 0.85

Tested by

no test coverage detected