internal
| 1042 | |
| 1043 | // internal |
| 1044 | void 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 |
nothing calls this directly
no test coverage detected