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

Method beforeTuple

src/simulate/simulate_gc.cpp:470–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468 popRange();
469 }
470 virtual void beforeTuple ( char * ps, TypeInfo * si ) override {
471 char * pa = ps;
472 auto tsize = si->size;
473 DAS_ASSERT(tsize==uint32_t(getTypeSize(si)));
474 PtrRange rdata(pa, tsize);
475 if ( reportHeap && tsize && markRange(rdata) ) {
476 if ( describe_ptr(pa, tsize) ) {
477 describeInfo(si);
478 ReportHistory();
479 tp << "TUPLE " << getTypeInfoMangledName(si) << "\n";
480 }
481 }
482 pushRange(rdata);
483 }
484 virtual void afterTuple ( char *, TypeInfo * ) override {
485 popRange();
486 }

Callers

nothing calls this directly

Calls 2

getTypeSizeFunction · 0.85
getTypeInfoMangledNameFunction · 0.85

Tested by

no test coverage detected