MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / FindInt32

Method FindInt32

src/plugin/kernel/src/AFCTable.cpp:155–169  ·  view source on GitHub ↗

find

Source from the content-addressed store, hash-verified

153
154// find
155uint32_t AFCTable::FindInt32(const uint32_t index, const int32_t value) const
156{
157 for (auto iter : data_)
158 {
159 auto pRowData = iter.second;
160 ARK_ASSERT_RET_VAL(pRowData != nullptr, 0u);
161
162 if (pRowData->GetInt32(index) == value)
163 {
164 return iter.first;
165 }
166 }
167
168 return 0u;
169}
170
171uint32_t AFCTable::FindInt64(const uint32_t index, const int64_t value) const
172{

Callers

nothing calls this directly

Calls 1

GetInt32Method · 0.45

Tested by

no test coverage detected