MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / AddTag

Method AddTag

WinArk/BigPoolView.cpp:152–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void CBigPoolView::AddTag(const SYSTEM_BIGPOOL_ENTRY& info, int index) {
153 char tag[5] = { 0 };
154 ::CopyMemory(tag, &info.Tag, 4);
155 auto item = std::make_shared<BigPoolItem>();
156 item->Tag = CStringA(tag);
157 item->Index = index;
158 item->BigPoolInfo = info;
159
160 if(auto it = m_TagSource.find(item->Tag); it != m_TagSource.end()) {
161 item->SourceName = it->second.first;
162 item->SourceDesc = it->second.second;
163 }
164
165 m_Pools.push_back(item);
166 m_PoolsMap.insert({ info.TagUlong,item });
167}
168
169void CBigPoolView::UpdateVisible() {
170 int page = GetCountPerPage();

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected