| 313 | } |
| 314 | |
| 315 | map<std::string, Ref<Metadata>> Metadata::GetKeyValueStore() const |
| 316 | { |
| 317 | BNMetadataValueStore* data = BNMetadataGetValueStore(m_object); |
| 318 | map<std::string, Ref<Metadata>> result; |
| 319 | for (size_t i = 0; i < data->size; i++) |
| 320 | { |
| 321 | result[data->keys[i]] = new Metadata(data->values[i]); |
| 322 | } |
| 323 | BNFreeMetadataValueStore(data); |
| 324 | return result; |
| 325 | } |
| 326 | |
| 327 | std::string Metadata::GetJsonString() const |
| 328 | { |
no outgoing calls
no test coverage detected