MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / Destruct

Method Destruct

external/as_add_on/scriptarray/scriptarray.cpp:982–997  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

980
981// internal
982void CScriptArray::Destruct(SArrayBuffer *buf, asUINT start, asUINT end)
983{
984 if( subTypeId & asTYPEID_MASK_OBJECT )
985 {
986 asIScriptEngine *engine = objType->GetEngine();
987
988 void **max = (void**)(buf->data + end * sizeof(void*));
989 void **d = (void**)(buf->data + start * sizeof(void*));
990
991 for( ; d < max; d++ )
992 {
993 if( *d )
994 engine->ReleaseScriptObject(*d, objType->GetSubType());
995 }
996 }
997}
998
999
1000// internal

Callers

nothing calls this directly

Calls 1

GetEngineMethod · 0.45

Tested by

no test coverage detected