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

Method walk_array

src/simulate/data_walker.cpp:103–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 void DataWalker::walk_array ( char * pa, uint32_t stride, uint64_t count, TypeInfo * ti ) {
104 if ( !canVisitArrayData(ti,count) ) return;
105 char * pe = pa;
106 beforeArrayData(pa, stride, count, ti);
107 if ( cancel() ) return;
108 for ( uint64_t i=0, ic=count; i!=ic; ++i ) {
109 bool last = i==ic-1;
110 beforeArrayElement(pa, ti, pe, i, last);
111 if ( cancel() ) return;
112 walk(pe, ti);
113 if ( cancel() ) return;
114 afterArrayElement(pa, ti, pe, i, last);
115 if ( cancel() ) return;
116 pe += stride;
117 }
118 afterArrayData(pa, stride, count, ti);
119 }
120
121 void DataWalker::walk_dim ( char * pa, TypeInfo * ti ) {
122 TypeInfo copyInfo = *ti;

Callers

nothing calls this directly

Calls 7

canVisitArrayDataFunction · 0.85
beforeArrayDataFunction · 0.85
cancelFunction · 0.85
beforeArrayElementFunction · 0.85
walkFunction · 0.85
afterArrayElementFunction · 0.85
afterArrayDataFunction · 0.85

Tested by

no test coverage detected