MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / reserve

Method reserve

engine/source/persistence/tinyXML/tinystr.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37void TiXmlString::reserve (size_type cap)
38{
39 if (cap > capacity())
40 {
41 TiXmlString tmp;
42 tmp.init(length(), cap);
43 memcpy(tmp.start(), data(), length());
44 swap(tmp);
45 }
46}
47
48
49TiXmlString& TiXmlString::assign(const char* str, size_type len)

Callers 2

tinyxml.cppFile · 0.45
operator +Function · 0.45

Calls 4

lengthFunction · 0.50
swapFunction · 0.50
initMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected