MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getVariantFieldOffset

Function getVariantFieldOffset

src/simulate/debug_info.cpp:286–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 ) {

Callers 2

scanVariantMethod · 0.85

Calls 2

getVariantAlignFunction · 0.85
getTypeBaseSizeFunction · 0.85

Tested by

no test coverage detected