MCPcopy Create free account
hub / github.com/anjo76/angelscript / FillASArray

Function FillASArray

sdk/tests/test_feature/source/test_addon_scriptarray.cpp:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223template < class T >
224void FillASArray(std::vector < T >& in, CScriptArray* out)
225{
226 out->Resize((asUINT)in.size());
227 for (int i = 0; i < (int)in.size(); i++)
228 {
229 out->SetValue(i, &in[i]);
230 }
231}
232
233template < class T >
234void FillSTLVector(CScriptArray* in, std::vector < T >& out)

Callers 1

cfunctionMethod · 0.85

Calls 3

ResizeMethod · 0.45
sizeMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected