MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / GetPropertyDataOffset

Function GetPropertyDataOffset

PresentData/TraceConsumer.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139uint32_t GetPropertyDataOffset(TRACE_EVENT_INFO const& tei, EVENT_RECORD const& eventRecord, uint32_t index)
140{
141 assert(index < tei.TopLevelPropertyCount);
142 uint32_t offset = 0;
143 for (uint32_t i = 0; i < index; ++i) {
144 auto info = GetPropertyInfo(tei, eventRecord, i, offset);
145 offset += info.size_ * info.count_;
146 }
147 return offset;
148}
149
150}
151

Callers 2

GetStringPropertyInfoFunction · 0.85
GetPropertyInfoFunction · 0.85

Calls 1

GetPropertyInfoFunction · 0.85

Tested by

no test coverage detected