MCPcopy Create free account
hub / github.com/SmingHub/Sming / invalidate

Method invalidate

Sming/Wiring/WString.cpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134/*********************************************/
135
136void String::invalidate(void)
137{
138 if(sso.set) {
139 sso.set = false;
140 } else {
141 free(ptr.buffer);
142 }
143 ptr.buffer = nullptr;
144 ptr.capacity = ptr.len = 0;
145}
146
147bool String::setLength(size_t size)
148{

Callers 2

moveMethod · 0.80
WString.cppFile · 0.80

Calls 1

freeFunction · 0.85

Tested by

no test coverage detected