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

Method Destruct

src/server/angelscript/add_on/scriptarray/scriptarray.cpp:983–998  ·  view source on GitHub ↗

internal

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ReleaseScriptObjectMethod · 0.80
GetEngineMethod · 0.45
GetSubTypeMethod · 0.45

Tested by

no test coverage detected