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

Function getTupleSize

src/simulate/debug_info.cpp:236–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 }
235
236 int getTupleSize ( TypeInfo * info ) {
237 int size = 0;
238 for ( uint32_t i=0, is=info->argCount; i!=is; ++i ) {
239 int al = getTypeAlign(info->argTypes[i]) - 1;
240 size = (size + al) & ~al;
241 size += getTypeSize(info->argTypes[i]);
242 }
243 int al = getTupleAlign(info) - 1;
244 size = (size + al) & ~al;
245 return size;
246 }
247
248 int getTupleFieldOffset ( TypeInfo * info, int index ) {
249 DAS_ASSERT(info->type==Type::tTuple);

Callers 1

getTypeBaseSizeFunction · 0.85

Calls 3

getTypeAlignFunction · 0.85
getTypeSizeFunction · 0.85
getTupleAlignFunction · 0.85

Tested by

no test coverage detected