| 284 | } |
| 285 | |
| 286 | int getVariantFieldOffset ( TypeInfo * info, int index ) { |
| 287 | DAS_ASSERT(info->type==Type::tVariant); |
| 288 | DAS_ASSERT(uint32_t(index)<info->argCount); |
| 289 | int al = getVariantAlign(info) - 1; |
| 290 | int offset = (getTypeBaseSize(Type::tInt) + al) & ~al; |
| 291 | return offset; |
| 292 | } |
| 293 | |
| 294 | int getTypeBaseSize ( TypeInfo * info ) { |
| 295 | if ( info->type==Type::tHandle ) { |
no test coverage detected