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

Method popBack

Sming/Core/Data/CStringArray.cpp:129–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129String CStringArray::popBack()
130{
131 auto backPtr = back();
132 if(backPtr == nullptr) {
133 return nullptr;
134 }
135 String s = backPtr;
136 setLength(backPtr - cbuffer());
137 if(stringCount != 0) {
138 --stringCount;
139 }
140 return s;
141}
142
143// Called when a string array is constructed or assigned
144void CStringArray::init()

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected