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

Method second_file

python/collaboration/merge.py:113–126  ·  view source on GitHub ↗

FileMetadata with contents of file for second 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

111
112 @property
113 def second_file(self) -> Optional[FileMetadata]:
114 """
115 FileMetadata with contents of file for second snapshot
116 This function is slow! Only use it if you really need it.
117
118 :return: FileMetadata object
119 """
120 result = core.BNAnalysisMergeConflictGetSecondFile(self._handle)
121 if result is None:
122 return None
123 lazy = util.LazyT(handle=result)
124 file = FileMetadata(handle=ctypes.cast(lazy.get(ctypes.POINTER(core.BNFileMetadata)), ctypes.POINTER(core.BNFileMetadata)))
125 core.BNCollaborationFreeLazyT(result)
126 return file
127
128 @property
129 def base(self) -> OptionalStringDict:

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
FileMetadataClass · 0.50

Tested by

no test coverage detected