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

Method getDataFromFile

native/cocos/platform/FileUtils.cpp:557–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557Data FileUtils::getDataFromFile(const ccstd::string &filename) {
558 Data d;
559 getContents(filename, &d);
560 return d;
561}
562
563FileUtils::Status FileUtils::getContents(const ccstd::string &filename, ResizableBuffer *buffer) {
564 if (filename.empty()) {

Callers 15

fetchBufferFunction · 0.80
_readFileMethod · 0.80
createVhostMethod · 0.80
loadMethod · 0.80
decodeToPcmMethod · 0.80
decodeToPcmMethod · 0.80
decodeToPcmMethod · 0.80
isCCZFileMethod · 0.80
isGZipFileMethod · 0.80
inflateCCZFileMethod · 0.80
JSB_loadFontFunction · 0.80

Calls 1

getContentsFunction · 0.85

Tested by

no test coverage detected