| 49 | } |
| 50 | |
| 51 | bool Bundle::optInt32(const std::string& key, int32_t& out) const { |
| 52 | auto entry = this->entries.find(key); |
| 53 | if (entry != std::end(this->entries) && entry->second.type == Type::Int32) { |
| 54 | out = entry->second.value_int32; |
| 55 | return true; |
| 56 | } else { |
| 57 | return false; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | bool Bundle::optInt64(const std::string& key, int64_t& out) const { |
| 62 | auto entry = this->entries.find(key); |
no outgoing calls
no test coverage detected