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

Method writeName

Engine/source/ts/tsShapeOldRead.cpp:845–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845void TSShape::writeName(Stream * s, S32 nameIndex)
846{
847 const char * name = "";
848 if (nameIndex>=0)
849 name = names[nameIndex];
850 S32 sz = (S32)dStrlen(name);
851 s->write(sz);
852 if (sz)
853 s->write(sz*sizeof(char),name);
854}
855
856S32 TSShape::readName(Stream * s, bool addName)
857{

Callers

nothing calls this directly

Calls 2

dStrlenFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected