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

Function fourccValue

core/base/Utils.cpp:955–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953}
954
955AX_DLL uint32_t fourccValue(std::string_view str)
956{
957 if (str.empty() || str[0] != '#')
958 return (uint32_t)-1;
959 uint32_t value = 0;
960 memcpy(&value, str.data() + 1, std::min(sizeof(value), str.size() - 1));
961 return value;
962}
963
964} // namespace utils
965

Callers 4

createMaskShapeMethod · 0.50
bakeEmissionMaskMethod · 0.50
ParticleSystem.cppFile · 0.50
removeMaskMethod · 0.50

Calls 4

minFunction · 0.50
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected