| 80 | } |
| 81 | |
| 82 | int 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 | |
| 88 | uint32_t FieldU32(const ipc::Message& message, const std::string& key, uint32_t fallback = 0) { |
| 89 | auto it = message.fields.find(key); |
nothing calls this directly
no outgoing calls
no test coverage detected