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

Method AddCustomUInt32

src/plugin/kernel/src/AFCEntity.cpp:740–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740bool AFCEntity::AddCustomUInt32(const std::string& name, const uint32_t value)
741{
742 ARK_ASSERT_RET_VAL(custom_data_list_.find(name) == custom_data_list_.end(), false);
743
744 AFIData* pData = ARK_NEW AFCData;
745 ARK_ASSERT_RET_VAL(pData != nullptr, false);
746
747 pData->SetUInt(value);
748 if (!custom_data_list_.insert(name, pData).second)
749 {
750 ARK_DELETE(pData);
751 return false;
752 }
753
754 return true;
755}
756
757bool AFCEntity::AddCustomInt64(const std::string& name, const int64_t value)
758{

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
SetUIntMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected