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

Method metadata

python/binaryview.py:9803–9817  ·  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

9801
9802 @property
9803 def metadata(self) -> Dict[str, 'metadata.MetadataValueType']:
9804 """
9805 `metadata` retrieves the metadata associated with the current BinaryView.
9806
9807 :rtype: metadata associated with the BinaryView
9808 :Example:
9809
9810 >>> bv.metadata
9811 <metadata: {}>
9812 """
9813 md_handle = core.BNBinaryViewGetMetadata(self.handle)
9814 assert md_handle is not None, "core.BNBinaryViewGetMetadata returned None"
9815 value = metadata.Metadata(handle=md_handle).value
9816 assert isinstance(value, dict), "core.BNBinaryViewGetMetadata did not return a dict"
9817 return value
9818
9819 @property
9820 def auto_metadata(self) -> Dict[str, 'metadata.MetadataValueType']:

Callers

nothing calls this directly

Calls 1

MetadataMethod · 0.80

Tested by

no test coverage detected