MCPcopy Create free account
hub / github.com/brichard19/BitCrack / removeTargetFromList

Method removeTargetFromList

CudaKeySearchDevice/CudaKeySearchDevice.cpp:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void CudaKeySearchDevice::removeTargetFromList(const unsigned int hash[5])
180{
181 size_t count = _targets.size();
182
183 while(count) {
184 if(memcmp(hash, _targets[count - 1].h, 20) == 0) {
185 _targets.erase(_targets.begin() + count - 1);
186 return;
187 }
188 count--;
189 }
190}
191
192bool CudaKeySearchDevice::isTargetInList(const unsigned int hash[5])
193{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected