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

Method base_file

python/collaboration/merge.py:81–94  ·  view source on GitHub ↗

FileMetadata with contents of file for base snapshot This function is slow! Only use it if you really need it. :return: FileMetadata object

(self)

Source from the content-addressed store, hash-verified

79
80 @property
81 def base_file(self) -> Optional[FileMetadata]:
82 """
83 FileMetadata with contents of file for base snapshot
84 This function is slow! Only use it if you really need it.
85
86 :return: FileMetadata object
87 """
88 result = core.BNAnalysisMergeConflictGetBaseFile(self._handle)
89 if result is None:
90 return None
91 lazy = util.LazyT(handle=result)
92 file = FileMetadata(handle=ctypes.cast(lazy.get(ctypes.POINTER(core.BNFileMetadata)), ctypes.POINTER(core.BNFileMetadata)))
93 core.BNCollaborationFreeLazyT(result)
94 return file
95
96 @property
97 def first_file(self) -> Optional[FileMetadata]:

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
FileMetadataClass · 0.50

Tested by

no test coverage detected