MCPcopy Create free account
hub / github.com/9miao/CrossApp / growBy

Function growBy

scripting/javascript/spidermonkey-android/include/jsapi.h:340–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338 T popCopy() { return vector.popCopy(); }
339
340 bool growBy(size_t inc) {
341 size_t oldLength = vector.length();
342 if (!vector.growByUninitialized(inc))
343 return false;
344 makeRangeGCSafe(oldLength);
345 return true;
346 }
347
348 bool resize(size_t newLength) {
349 size_t oldLength = vector.length();

Callers 1

resizeMethod · 0.50

Calls 3

makeRangeGCSafeFunction · 0.70
lengthMethod · 0.45
growByUninitializedMethod · 0.45

Tested by

no test coverage detected