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

Method Destruct

sdk/add_on/scriptarray/scriptarray.cpp:1044–1059  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

1042
1043// internal
1044void CScriptArray::Destruct(SArrayBuffer *buf, asUINT start, asUINT end)
1045{
1046 if( subTypeId & asTYPEID_MASK_OBJECT )
1047 {
1048 asIScriptEngine *engine = objType->GetEngine();
1049
1050 void **max = (void**)(buf->data + end * sizeof(void*));
1051 void **d = (void**)(buf->data + start * sizeof(void*));
1052
1053 for( ; d < max; d++ )
1054 {
1055 if( *d )
1056 engine->ReleaseScriptObject(*d, objType->GetSubType());
1057 }
1058 }
1059}
1060
1061
1062// internal

Callers

nothing calls this directly

Calls 3

ReleaseScriptObjectMethod · 0.80
GetEngineMethod · 0.45
GetSubTypeMethod · 0.45

Tested by

no test coverage detected