MCPcopy Create free account
hub / github.com/axmolengine/axmol / dictionaryWithDataOfFile

Method dictionaryWithDataOfFile

core/platform/FileUtils.cpp:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 ValueMap dictionaryWithDataOfFile(const char* filedata, int filesize)
127 {
128 _resultType = SAX_RESULT_DICT;
129 SAXParser parser;
130
131 AXASSERT(parser.init("UTF-8"), "The file format isn't UTF-8");
132 parser.setDelegator(this);
133
134 parser.parse(filedata, filesize);
135 return _rootDict;
136 }
137
138 ValueVector arrayWithContentsOfFile(std::string_view fileName)
139 {

Callers 1

getValueMapFromDataMethod · 0.80

Calls 3

setDelegatorMethod · 0.80
initMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected