MCPcopy Create free account
hub / github.com/78/tenbox / FieldInt

Function FieldInt

src/daemon/runtime_manager.cpp:82–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82int FieldInt(const ipc::Message& message, const std::string& key, int fallback = 0) {
83 auto it = message.fields.find(key);
84 if (it == message.fields.end()) return fallback;
85 return std::atoi(it->second.c_str());
86}
87
88uint32_t FieldU32(const ipc::Message& message, const std::string& key, uint32_t fallback = 0) {
89 auto it = message.fields.find(key);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected