MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / SetLength

Method SetLength

src/server/angelscript/angelscript/source/as_array.h:342–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341template <class T>
342bool asCArray<T>::SetLength(asUINT numElements)
343{
344 if( numElements > maxLength )
345 {
346 Allocate(numElements, true);
347 if( numElements > maxLength )
348 {
349 // Out of memory. Return without doing anything
350 return false;
351 }
352 }
353
354 length = numElements;
355 return true;
356}
357
358template <class T>
359bool asCArray<T>::SetLengthNoConstruct(asUINT numElements)

Callers 15

ClearMethod · 0.45
AppendMethod · 0.45
ReadMethod · 0.45
ReadInnerMethod · 0.45
ReadUsedFunctionsMethod · 0.45
ReadFunctionSignatureMethod · 0.45
ReadFunctionMethod · 0.45
ReadTypeDeclarationMethod · 0.45
ReadStringMethod · 0.45
ReadUsedObjectPropsMethod · 0.45
CalculateStackNeededMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected