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

Method arrayWithContentsOfFile

native/cocos/platform/FileUtils.cpp:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 }
119
120 ValueVector arrayWithContentsOfFile(const ccstd::string &fileName) {
121 _resultType = SAX_RESULT_ARRAY;
122 SAXParser parser;
123
124 CC_ASSERT(parser.init("UTF-8"));
125 parser.setDelegator(this);
126
127 parser.parse(fileName);
128 return _rootArray;
129 }
130
131 void startElement(void *ctx, const char *name, const char **atts) override {
132 CC_UNUSED_PARAM(ctx);

Callers 1

Calls 3

setDelegatorMethod · 0.80
initMethod · 0.65
parseMethod · 0.45

Tested by

no test coverage detected