Appends a value to the Metadata array.
(self, value)
| 276 | return core.BNMetadataIsKeyValueStore(self.handle) |
| 277 | |
| 278 | def append(self, value): |
| 279 | """Appends a value to the Metadata array.""" |
| 280 | if not self.is_array: |
| 281 | raise TypeError("Metadata object is not an array and does not support append") |
| 282 | md_value = Metadata(value) # Convert value to Metadata object |
| 283 | core.BNMetadataArrayAppend(self.handle, md_value.handle) |
| 284 | |
| 285 | def remove(self, key_or_index): |
| 286 | if isinstance(key_or_index, str) and self.is_dict: |
no test coverage detected