MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / auto_metadata

Method auto_metadata

python/binaryview.py:9820–9834  ·  view source on GitHub ↗

`metadata` retrieves the metadata associated with the current BinaryView. :rtype: metadata associated with the BinaryView :Example: >>> bv.metadata

(self)

Source from the content-addressed store, hash-verified

9818
9819 @property
9820 def auto_metadata(self) -> Dict[str, 'metadata.MetadataValueType']:
9821 """
9822 `metadata` retrieves the metadata associated with the current BinaryView.
9823
9824 :rtype: metadata associated with the BinaryView
9825 :Example:
9826
9827 >>> bv.metadata
9828 <metadata: {}>
9829 """
9830 md_handle = core.BNBinaryViewGetAutoMetadata(self.handle)
9831 assert md_handle is not None, "core.BNBinaryViewGetAutoMetadata returned None"
9832 value = metadata.Metadata(handle=md_handle).value
9833 assert isinstance(value, dict), "core.BNBinaryViewGetAutoMetadata did not return a dict"
9834 return value
9835
9836 def get_load_settings_type_names(self) -> List[str]:
9837 """

Callers

nothing calls this directly

Calls 1

MetadataMethod · 0.80

Tested by

no test coverage detected