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

Method FindFloat

src/plugin/kernel/src/AFCTable.cpp:203–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203uint32_t AFCTable::FindFloat(const uint32_t index, float value) const
204{
205 for (auto iter : data_)
206 {
207 auto pRowData = iter.second;
208 ARK_ASSERT_RET_VAL(pRowData != nullptr, 0u);
209
210 if (pRowData->GetFloat(index) == value)
211 {
212 return iter.first;
213 }
214 }
215
216 return 0u;
217}
218
219uint32_t AFCTable::FindDouble(const uint32_t index, double value) const
220{

Callers

nothing calls this directly

Calls 1

GetFloatMethod · 0.45

Tested by

no test coverage detected