MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / stringToMemory

Method stringToMemory

Engine/lib/collada/src/dae/daeMetaAttribute.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void daeMetaAttribute::stringToMemory(daeElement* e, daeString s) {
106 if (!strcmp(_name, "id") && e->getDocument())
107 e->getDocument()->changeElementID(e, s);
108 else if (!strcmp(_name, "sid") && e->getDocument())
109 e->getDocument()->changeElementSID(e, s);
110
111 _type->stringToMemory((daeChar*)s, get(e));
112}
113
114daeChar* daeMetaAttribute::getWritableMemory(daeElement* e) {
115 return (daeChar*)e + _offset;

Callers 1

setDefaultStringMethod · 0.45

Calls 5

stringToArrayMethod · 0.80
getFunction · 0.50
getDocumentMethod · 0.45
changeElementIDMethod · 0.45
changeElementSIDMethod · 0.45

Tested by

no test coverage detected