| 109 | |
| 110 | |
| 111 | bool ExternalLocation::SetTargetAddress(std::optional<uint64_t> address) |
| 112 | { |
| 113 | if (address.has_value()) |
| 114 | { |
| 115 | uint64_t addr = address.value(); |
| 116 | return BNExternalLocationSetTargetAddress(m_object, &addr); |
| 117 | } |
| 118 | else |
| 119 | { |
| 120 | return BNExternalLocationSetTargetAddress(m_object, nullptr); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | |
| 125 | bool ExternalLocation::SetTargetSymbol(std::optional<std::string> symbol) |