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

Method resize

scripting/javascript/spidermonkey-android/include/js/Vector.h:757–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755template <class T, size_t N, class AP>
756STATIC_POSTCONDITION(!return || ubound(this->begin()) >= newLength)
757inline bool
758Vector<T,N,AP>::resize(size_t newLength)
759{
760 size_t curLength = mLength;
761 if (newLength > curLength)
762 return growBy(newLength - curLength);
763 shrinkBy(curLength - newLength);
764 return true;
765}
766
767template <class T, size_t N, class AP>
768JS_ALWAYS_INLINE bool

Callers

nothing calls this directly

Calls 1

growByFunction · 0.50

Tested by

no test coverage detected